Loading ChangeLog +5 −0 Original line number Diff line number Diff line git HEAD * Fix segfault upon unloadable images when image-related format specifiers (e.g. %h) are used in --title Sat, 12 Mar 2011 22:49:53 +0100 Daniel Friesel <derf@finalrewind.org> * Release v1.12 Loading src/slideshow.c +5 −4 Original line number Diff line number Diff line Loading @@ -252,10 +252,6 @@ void slideshow_change_image(winwidget winwid, int change) filelist = feh_file_remove_from_list(filelist, last); last = NULL; } s = slideshow_create_name(FEH_FILE(current_file->data)); winwidget_rename(winwid, s); free(s); if ((winwidget_loadimage(winwid, FEH_FILE(current_file->data))) != 0) { Loading @@ -269,6 +265,11 @@ void slideshow_change_image(winwidget winwid, int change) winwid->im_w = gib_imlib_image_get_width(winwid->im); winwid->im_h = gib_imlib_image_get_height(winwid->im); winwidget_render_image(winwid, 1, 1); s = slideshow_create_name(FEH_FILE(current_file->data)); winwidget_rename(winwid, s); free(s); break; } else last = current_file; Loading test/feh.i +7 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; use Test::More tests => 102; use Test::More tests => 103; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; Loading Loading @@ -445,3 +445,9 @@ ok(waitfor { }, 'disabled screen clip'); feh_stop(); # GH-35 "Custom window title crashes feh on unloadable files" $win = feh_start('--title "feh %h"', 'test/ok/png test/fail/png test/ok/jpg'); SendKeys('{RIG}'); test_win_title($win, 'feh 16'); feh_stop(); Loading
ChangeLog +5 −0 Original line number Diff line number Diff line git HEAD * Fix segfault upon unloadable images when image-related format specifiers (e.g. %h) are used in --title Sat, 12 Mar 2011 22:49:53 +0100 Daniel Friesel <derf@finalrewind.org> * Release v1.12 Loading
src/slideshow.c +5 −4 Original line number Diff line number Diff line Loading @@ -252,10 +252,6 @@ void slideshow_change_image(winwidget winwid, int change) filelist = feh_file_remove_from_list(filelist, last); last = NULL; } s = slideshow_create_name(FEH_FILE(current_file->data)); winwidget_rename(winwid, s); free(s); if ((winwidget_loadimage(winwid, FEH_FILE(current_file->data))) != 0) { Loading @@ -269,6 +265,11 @@ void slideshow_change_image(winwidget winwid, int change) winwid->im_w = gib_imlib_image_get_width(winwid->im); winwid->im_h = gib_imlib_image_get_height(winwid->im); winwidget_render_image(winwid, 1, 1); s = slideshow_create_name(FEH_FILE(current_file->data)); winwidget_rename(winwid, s); free(s); break; } else last = current_file; Loading
test/feh.i +7 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; use Test::More tests => 102; use Test::More tests => 103; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; Loading Loading @@ -445,3 +445,9 @@ ok(waitfor { }, 'disabled screen clip'); feh_stop(); # GH-35 "Custom window title crashes feh on unloadable files" $win = feh_start('--title "feh %h"', 'test/ok/png test/fail/png test/ok/jpg'); SendKeys('{RIG}'); test_win_title($win, 'feh 16'); feh_stop();