Bug 120985 - KPDF crashing on opening attached PDF file
Summary: KPDF crashing on opening attached PDF file
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Unmaintained
Component: general (show other bugs)
Version: 0.5
Platform: unspecified NetBSD
: NOR crash
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 17:20 UTC by Raphael Langerhorst
Modified: 2006-01-29 18:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
this PDF file crashes KPDF when opened, it's a 2 page offer for some hardware (152.76 KB, application/pdf)
2006-01-29 17:23 UTC, Raphael Langerhorst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Langerhorst 2006-01-29 17:20:46 UTC
Version:           0.5 (using KDE 3.5.0, compiled sources)
Compiler:          gcc version 3.3.3 (NetBSD nb3 20040520)
OS:                NetBSD (amd64) release 3.0

The attached PDF crashes KPDF on opening. It is shown empty (2 pages) in KGhostView and it loads fine in KWord (1.4.2).
Comment 1 Raphael Langerhorst 2006-01-29 17:23:48 UTC
Created attachment 14444 [details]
this PDF file crashes KPDF when opened, it's a 2 page offer for some hardware
Comment 2 Albert Astals Cid 2006-01-29 18:44:29 UTC
SVN commit 503607 by aacid:

So not assume ctu will exist
BUGS: 120985


 M  +1 -0      GfxFont.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/GfxFont.cc #503606:503607
@@ -1493,6 +1493,7 @@
   unsigned int cidlen;
 
   *mapsizep = 0;
+  if (!ctu) return NULL;
 
   /* we use only unicode cmap */
   cmap = -1;