Hello zyx, hello all,

> zyx <z...@gmx.us> has written on 14 January 2018 at 13:34:
> 
> 
> On Thu, 2018-01-11 at 16:59 -0500, Probe Fuzzer wrote:
> > src/base/PdfObjectStreamParserObject.cpp:99:30: runtime error: signed
> > integer overflow: 94 + 9223372036854775807 cannot be represented in
> > type 'long int'
> 
>       Hi,
> the line 99 of that file looks like this:
> 
>   device.Device()->Seek( static_cast<std::streamoff>(lFirst + lOff) );
> 
> where both lFirst and lOff are 64bit integers, thus it all depends on
> the static_cast and the size of streamoff, whose size may depend on
> large file support being enabled or not. That's not a problem of
> PoDoFo, is it?

no, the problem is that lFirst + lOff may overflow if they're (e.g.)
both more than half the biggest value.

Best regards, mabri

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to