crichtan / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

NULL deref in CFX_BaseSegmentedArray::Iterate #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using fresh trunk (4643533ca3dabe945fd174caf892a3ccb6cf2fd6)
./out/Release/pdfium_test repro-30271.pdf 

Program received signal SIGSEGV, Segmentation fault.
0x000000000054b9e0 in CFX_BaseSegmentedArray::Iterate(int (*)(void*, void*), 
void*) const ()
(gdb) bt
#0  0x000000000054b9e0 in CFX_BaseSegmentedArray::Iterate(int (*)(void*, 
void*), void*) const ()
#1  0x0000000000553197 in CFX_CMapByteStringToPtr::Lookup(CFX_ByteStringC 
const&, void*&) const ()
#2  0x000000000047519b in CPDF_Dictionary::GetElement(CFX_ByteStringC const&) 
const ()
#3  0x00000000004781e9 in GetDirectInteger(CPDF_Dictionary*, CFX_ByteStringC 
const&) ()
#4  0x000000000047e915 in CPDF_DataAvail::CheckTrailer(IFX_DownloadHints*) ()
#5  0x0000000000484b33 in CPDF_DataAvail::IsDocAvail(IFX_DownloadHints*) ()
#6  0x000000000040ff74 in FPDFAvail_IsDocAvail ()
#7  0x000000000040cf6b in RenderPdf(char const*, char const*, unsigned long, 
OutputFormat) ()
#8  0x000000000040b5b2 in main ()

Might be related to https://code.google.com/p/chromium/issues/detail?id=382242

Original issue reported on code.google.com by kcc@chromium.org on 1 Dec 2014 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in 
https://pdfium.googlesource.com/pdfium/+/ca5d7699d2f3a2445592ffd8aee3e758a2a16ac
7

Original comment by bo...@foxitsoftware.com on 9 Dec 2014 at 6:25