> > switch( lW[0] == 0 ? 1 : nData[0] )
> Yes, I agree: your solution is cleaner and does fix the problem.
Hi,
I received a private reply from Amin couple weeks ago with his
acknowledge that the above change works, thus I committed it as r1666:
http://sourceforge.net/p/podofo/code/1666
On Tue, 2015-01-13 at 10:40 +0100, A. Massad wrote:
>
> I have managed to fix this issue with the following patch to
> PdfXRefStreamParserObject.cpp, the if-statement added just before
> the switch-statement fixed this bug:
>
> > =
Hello PoDoFo developers,
I think that I’ve fixed a bug in PdfXRefStreamParserObject which occurred if
the first array entry in the „W“-Array has a zero value:
Current SVN version r1665 treated this case as „type 0“ (free object), however
according to the PDF-Spec this case should have a default