IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
487 stars 73 forks source link

Uncompressed .zip containing SVG data causes segfault #742

Open adroitwhiz opened 5 years ago

adroitwhiz commented 5 years ago

Certain uncompressed .zip files containing .svg files, with their extensions changed, cause SpaceFM to segfault when thumbnails are enabled. This seems to occur because SpaceFM is tricked into thinking the .zip is an .svg and attempts to render it. This does not occur if the file extension is .zip, but as soon as the extension is changed to something that SpaceFM needs to "guess", it interprets it as an .svg and crashes.

Steps to reproduce:

  1. Download Crash.zip and, for convenience purposes, save it into a new, empty, folder.
  2. Change the extension to something that isn't recognized by SpaceFM, e.g. ".file".
  3. If you have not already done so, enable thumbnails.
  4. SpaceFM will now crash whenever entering the folder this file is contained in.

I'm running SpaceFM 1.0.6 on Fedora 29 x86_64. The version of gdk-pixbuf (which contains "libpixbufloader-svg.so", seemingly the source of the segfault) on my system is 2.10.0.

LeetCodes commented 4 years ago

was having the same issue, and my offending svg was in my home folder, so i was unable to open file manager at all until i ran dmesg and read the segfault was caused by libpixbufloader-svg.so and tried rm ~/*.svg and now everything is working fine