* Fix memory handling in isolinux.cfg parser: take copies of all labels,

and free a pointer to the start of the file, not the end (closes: Malone
  #34592).
master
Colin Watson 18 years ago
parent b5f0f3cef5
commit 802e8426e6

3
debian/changelog vendored

@ -11,6 +11,9 @@ gfxboot-theme-ubuntu (0.1.18) UNRELEASED; urgency=low
Bokmål, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian,
Slovak, Swedish, Chinese (China), Chinese (Taiwan).
* Update font to add newly-required characters.
* Fix memory handling in isolinux.cfg parser: take copies of all labels,
and free a pointer to the start of the file, not the end (closes: Malone
#34592).
-- Colin Watson <cjwatson@ubuntu.com> Tue, 4 Apr 2006 16:25:30 +0100

@ -225,11 +225,11 @@
} { pop } ifelse
} if
dup "label" eq {
over menuconfig.skipspace /menuconfig.curlabel exch def
over menuconfig.skipspace strdup /menuconfig.curlabel exch def
} if
dup "menu" eq {
over menuconfig.skipspace menuconfig.keyword
dup "label" eq { over menuconfig.skipspace menuconfig.sethuman } if
dup "label" eq { over menuconfig.skipspace strdup menuconfig.sethuman } if
dup "hide" eq { menuconfig.hidelabel } if
free rot pop exch
} if
@ -237,7 +237,8 @@
% skip to end of line
dup length add
} loop free
} loop pop
menuconfig.file free
menuconfig.humans menuconfig.entries menuconfig.args
} def

Loading…
Cancel
Save