<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - syntax errors reported on PDFs created by xsane"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103446#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - syntax errors reported on PDFs created by xsane"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103446">bug 103446</a>
from <span class="vcard"><a class="email" href="mailto:aacid@kde.org" title="Albert Astals Cid <aacid@kde.org>"> <span class="fn">Albert Astals Cid</span></a>
</span></b>
<pre>Adrian, sorry it took me so long to come back to this, but this patch makes
pdfimages crash with
104418018297-AttenInSuspensionsIrregularlyShapedSedimentParticles.pdf
tsdgeos@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: <a href="mailto:memcpy@GLIBC_2.2.5">memcpy@GLIBC_2.2.5</a> (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==</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>