[poppler] Increase %%EOF searching

Albert Astals Cid aacid at kde.org
Thu Aug 4 04:55:20 EST 2005


Good chatch, what about this then?

I've checked and doing

str->setPos(1024, -1);

does not hurt as it already checks if the file is large enough and does only 
"rewind" the size if < 1024.

Albert

A Dimecres 03 Agost 2005 04:45, Kristian Høgsberg va escriure:
> Albert Astals Cid wrote:
> > Ok, finally i've come across a document that has %%EOF VEEEEEEEEERY far
> > from the end but still in the last 1024 bytes pdf spec says adobe checks
> > for.
> >
> > Agree to commit?
>
> It looks good to me, except, what happens for documents smaller that
> 1024 bytes?  We should probably break out of the for loop on EOF and
> nul-terminate the buffer.
>
> Kristian
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moreEOFsearching.patch
Type: text/x-diff
Size: 1849 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050803/321aeb2d/moreEOFsearching.bin


More information about the poppler mailing list