Bug 120985

Summary: KPDF crashing on opening attached PDF file
Product: [Applications] kpdf Reporter: Raphael Langerhorst <raphael.langerhorst>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 0.5   
Target Milestone: ---   
Platform: unspecified   
OS: NetBSD   
Latest Commit: Version Fixed In:
Attachments: this PDF file crashes KPDF when opened, it's a 2 page offer for some hardware

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;