* Backport 'split' memory corruption fix from SuSE.

master
Colin Watson 16 years ago
parent da4ca4aa83
commit 183d8899d1

6
debian/changelog vendored

@ -1,3 +1,9 @@
gfxboot-theme-ubuntu (0.5.11) UNRELEASED; urgency=low
* Backport 'split' memory corruption fix from SuSE.
-- Colin Watson <cjwatson@ubuntu.com> Thu, 20 Mar 2008 22:12:01 +0000
gfxboot-theme-ubuntu (0.5.10) hardy; urgency=low
* Fix a stack leak in menuitemmap.

@ -563,15 +563,18 @@ def
%
/split {
% split does not work if str1 is in a special memory region (where
% 'cvp length' does not work). So we dup it first.
exch strdup dup rot
currenteotchar exch seteotchar exch
[ exch
{
dup length 0 gt {
dup strdup exch
dup length add
} if
dup cvp length 1 le { pop exit } if
@ -583,6 +586,8 @@ def
exch seteotchar
exch free
} def

Loading…
Cancel
Save