Yep, the line I referenced is not where the crash occurred, but the point of no 
return where heap corruption was sure to happen thereafter. Once the heap is 
corrupted the crash that brings the process down can happen in all sorts of 
places.

On 4 July 2015 16:23:36 BST, Adam Reichold <[email protected]> wrote:
>Hello,
>
>> I'm afraid digging out documents that cause it is not a simple
>> proposition for me right now. But from my understanding of the code
>> - from the build I had - if one hits that `new JPXStream`, then it
>was
>> guaranteed to crash. Are you certain in your testing that this line**
>> is being hit (e.g, with "printf"?). The build I had definitely could
>> not have executed that line correctly. Maybe I had an incorrect
>> build due to a strange environment, though I thought I had hit the
>> problem with the standard build shipped with Ubuntu.
>> 
>> **
>https://cgit.freedesktop.org/poppler/poppler/tree/poppler/Stream.cc?id=poppler-0.33.0#n355
>
>Even though I always crash at [1] instead of the above, I could now
>reproduce this issue and can confirm that Peter's patch fixes this for
>me. An example of a document that triggers the issue for me is [2]. I
>also run Linux and use the CMake build system. Only openjpeg 1.5.2 is
>installed on my system.
>
>[1]
>http://cgit.freedesktop.org/poppler/poppler/tree/poppler/JPXStream.cc?id=poppler-0.33.0#n489
>
>[2] http://restfulwebapis.org/RESTful_Web_Services.pdf
>
>Best regards, Adam.
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>poppler mailing list
>[email protected]
>http://lists.freedesktop.org/mailman/listinfo/poppler

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to