Browse Source

* Backport 'split' memory corruption fix from SuSE.

master
Colin Watson 14 years ago
parent
commit
183d8899d1
  1. 6
      debian/changelog
  2. 13
      system.inc

6
debian/changelog

@ -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.

13
system.inc

@ -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 strdup exch
dup length add
dup cvp length 1 le { pop exit } if
@ -583,6 +586,8 @@ def
exch seteotchar
exch free
} def

Loading…
Cancel
Save