[Poppler-bugs] [Bug 103446] syntax errors reported on PDFs created by xsane

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 28 23:35:59 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103446

--- Comment #7 from Albert Astals Cid <aacid at kde.org> ---
Adrian, sorry it took me so long to come back to this, but this patch makes
pdfimages crash with
104418018297-AttenInSuspensionsIrregularlyShapedSedimentParticles.pdf

tsdgeos at xps:~/okularfiles/pdf/scripts:$ valgrind
~/devel/poppler/build-new/utils/pdfimages -png
../104418018297-AttenInSuspensionsIrregularlyShapedSedimentParticles.pdf
old-pdfimages/bla
==18590== Memcheck, a memory error detector
==18590== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==18590== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==18590== Command: /home/tsdgeos/devel/poppler/build-new/utils/pdfimages -png
../104418018297-AttenInSuspensionsIrregularlyShapedSedimentParticles.pdf
old-pdfimages/bla
==18590== 
==18590== Invalid write of size 8
==18590==    at 0x4C320C3: memcpy at GLIBC_2.2.5 (vg_replace_strmem.c:1017)
==18590==    by 0x4FB14A9: memcpy (string3.h:53)
==18590==    by 0x4FB14A9: EmbedStream::getChars(int, unsigned char*)
(Stream.cc:1140)
==18590==    by 0x4FB2391: doGetChars (Stream.h:120)
==18590==    by 0x4FB2391: ImageStream::getLine() (Stream.cc:512)
==18590==    by 0x10F449: ImageOutputDev::writeImageFile(ImgWriter*,
ImageOutputDev::ImageFormat, char const*, Stream*, int, int, GfxImageColorMap*)
(ImageOutputDev.cc:476)
==18590==    by 0x10FB5C: ImageOutputDev::writeImage(GfxState*, Object*,
Stream*, int, int, GfxImageColorMap*, bool) (ImageOutputDev.cc:671)
==18590==    by 0x4F610EB: Gfx::doImage(Object*, Stream*, bool) (Gfx.cc:4592)
==18590==    by 0x4F618F9: Gfx::opBeginImage(Object*, int) (Gfx.cc:4895)
==18590==    by 0x4F59F30: Gfx::go(bool) (Gfx.cc:738)
==18590==    by 0x4F5A47E: Gfx::display(Object*, bool) (Gfx.cc:700)
==18590==    by 0x4FA613A: Page::displaySlice(OutputDev*, double, double, int,
bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*,
void*), void*, bool) (Page.cc:560)
==18590==    by 0x4FA63C7: Page::display(OutputDev*, double, double, int, bool,
bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool)
(Page.cc:483)
==18590==    by 0x4FAAB68: PDFDoc::displayPages(OutputDev*, int, int, double,
double, int, bool, bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*),
void*) (PDFDoc.cc:516)
==18590==  Address 0xe2281a8 is 984 bytes inside a block of size 989 alloc'd
==18590==    at 0x4C2DB2F: malloc (vg_replace_malloc.c:299)
==18590==    by 0x4F004E3: gmalloc (gmem.cc:110)
==18590==    by 0x4F004E3: gmallocn (gmem.cc:192)
==18590==    by 0x4F004E3: gmallocn_checkoverflow (gmem.cc:200)
==18590==    by 0x4FB20BC: ImageStream::ImageStream(Stream*, int, int, int)
(Stream.cc:454)
==18590==    by 0x10F21A: ImageOutputDev::writeImageFile(ImgWriter*,
ImageOutputDev::ImageFormat, char const*, Stream*, int, int, GfxImageColorMap*)
(ImageOutputDev.cc:384)
==18590==    by 0x10FB5C: ImageOutputDev::writeImage(GfxState*, Object*,
Stream*, int, int, GfxImageColorMap*, bool) (ImageOutputDev.cc:671)
==18590==    by 0x4F610EB: Gfx::doImage(Object*, Stream*, bool) (Gfx.cc:4592)
==18590==    by 0x4F618F9: Gfx::opBeginImage(Object*, int) (Gfx.cc:4895)
==18590==    by 0x4F59F30: Gfx::go(bool) (Gfx.cc:738)
==18590==    by 0x4F5A47E: Gfx::display(Object*, bool) (Gfx.cc:700)
==18590==    by 0x4FA613A: Page::displaySlice(OutputDev*, double, double, int,
bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*,
void*), void*, bool) (Page.cc:560)
==18590==    by 0x4FA63C7: Page::display(OutputDev*, double, double, int, bool,
bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool)
(Page.cc:483)
==18590==    by 0x4FAAB68: PDFDoc::displayPages(OutputDev*, int, int, double,
double, int, bool, bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*),
void*) (PDFDoc.cc:516)
==18590==

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171228/2e66d350/attachment-0001.html>


More information about the Poppler-bugs mailing list