Summary: | If FixedPage.Resources is empty, null-ptr results in crash | ||
---|---|---|---|
Product: | GhostXPS | Reporter: | norbert.janssen |
Component: | General | Assignee: | Tor Andersson <tor.andersson> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | 661 | Word Size: | --- |
Attachments: | InvisibleObjects.xps |
Description
norbert.janssen
2009-07-10 07:25:31 UTC
Created attachment 5204 [details]
InvisibleObjects.xps
xps testfile from MicroSoft.
Note that this testfile also reveals a another bug in the GhostXPS interpreter
(the part outside the box should not be visible), when the nullptr crash is
fixed
I just printed with latest version and noticed that the part outside the box is also invisible. So you can forget the last paragraph in comment #1 for location of xps sampledocuments: http://www.microsoft.com/whdc/XPS/XpsSamples.mspx Reproduced with ghostpdl r9973 + gs r9980 on Mac OS X. (gdb) run InvisibleObjects.xps Starting program: /Users/mushizak/develop/artifex/ghostpdl/xps/obj/gxps InvisibleObjects.xps Reading symbols for shared libraries +++++++... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000004 0x002ebd4e in xps_att (item=0x0, att=0x3504e4 "Source") at ../xps/xpsxml.c:281 281 for (i = 0; item->atts[i]; i += 2) (gdb) where #0 0x002ebd4e in xps_att (item=0x0, att=0x3504e4 "Source") at ../xps/xpsxml.c:281 #1 0x002ef30c in xps_resource_dictionary_has_transparency (ctx=0xc99340, root=0x0) at ../xps/xpsanalyze.c:34 #2 0x002ee6ad in xps_parse_fixed_page (ctx=0xc99340, part=0xc9d5c4) at ../xps/xpspage.c:199 #3 0x002edcb7 in xps_process_part (ctx=0xc99340, part=0xcad2bc) at ../xps/xpsdoc.c:920 #4 0x002eb447 in xps_process_data (ctx=0xc99340, buf=0xbfffead0) at ../xps/xpszip.c:529 #5 0x00002606 in xps_imp_process (pinstance=0xc99300, pcursor=0xbfffead0) at ../xps/xpstop.c:224 #6 0x00320a8f in pl_process (instance=0xc99300, cursor=0xbfffead0) at ../pl/pltop.c:148 #7 0x0032b8f7 in pl_main (argc=2, argv=0xbffff900) at ../pl/plmain.c:399 #8 0x0032d911 in main (argc=2, argv=0xbffff900) at ../pl/plmain.c:1280 (gdb) Changing customer bugs that have been resolved more than a year ago to closed. |