[NTG-pdftex] [ pdftex-Bugs-897 ] segfault with empty colorstackinit

noreply at sarovar.org noreply at sarovar.org
Wed Jan 9 16:26:26 CET 2008


Bugs item #897, was opened at 2008-01-09 13:21
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=897&group_id=106

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert (schlcht)
Assigned to: Nobody (None)
Summary: segfault with empty colorstackinit

Initial Comment:
Here's a segfault:

\edef\x{\pdfcolorstackinit page{}}
X\bye



----------------------------------------------------------------------

Comment By: Heiko Oberdiek (oberdiek)
Date: 2008-01-09 16:26

Message:
Logged In: YES 
user_id=1276

See patch 898 for utils.c

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

----------------------------------------------------------------------

Comment By: Heiko Oberdiek (oberdiek)
Date: 2008-01-09 16:22

Message:
Logged In: YES 
user_id=1276

The bug is in function colorstackskippagestart(),
Zero length strings are stored as NULL and
strcmp breaks.

Patch: add
    if (colstack->page_current == NULL) {
        return 0;
    }
before the line with strcmp.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=897&group_id=106


More information about the ntg-pdftex mailing list