From eb6566cf9d1887cc5f18df58be6651579404fed4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 11 May 2011 01:52:34 +0200 Subject: feh_parse_options_from_string: allocate argv list on stack This fixes a really weird bug where continued theme definitions containing just one option/value pair caused feh to mis-parse parts of the following line. Apparently, subsequent realloc calls mixed with strdups in another function caused parts of the list (argv) content to be overwritten by the content of the list pointer itself. I wasn't able to find out the exact causes / conditions. --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 54334e2..c28a827 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,9 @@ git HEAD and not just the default for new windows * The zoom_default key now works fine with --scale-down + * Fix access of uninitialized memory / malloc/realloc clash in continued + theme definition handling. Having a theme line with just one + option/value pair used to produce undefined behaviour Sat, 23 Apr 2011 22:00:27 +0200 Daniel Friesel -- cgit v1.2.3