derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.46k stars 158 forks source link

double free when using --randomize with unloadable image file #750

Open hidroto opened 4 months ago

hidroto commented 4 months ago

Setup

feh version 3.10.2-2-g2d8f9e1 compile time switches: verscmp xinerama create two files normal.png a normal loadable image file empty.file an empty file

Run

feh --randomize normal.png empty.file

then move through the filelist with arrow keys. feh wont always crash depending on the order of the filelist and perhaps other factors. but when it does crash it reports

free(): double free detected in tcache 2 and the shell reports the process is terminated by signal SIGABRT.

may be the same bug as #535