One More: PoDoFo will crash if I add a custom attribute with more than
15 charaters in Info dictionary.
> _____________________________________________
> From: Shunli (Derek) Zheng
> Sent: Friday, September 26, 2008 3:20 PM
> To: '[email protected]'
> Cc: Xiang (Gavin) Ye; 'Scott Goldstein'; Bo Meng; Jiemin (Jim) Jin
> Subject: PoDoFo bug reports
>
> Hi PoDoFo supporters,
>
> Thanks for all your contribution to the PoDoFo project. It's a very
> good and useful open source project.
>
> Our company has a project that should add custom attributes to PDF
> file's Info dictionary. And we found some critical bugs of PoDoFo when
> doing test on it.
> 1. There is a crash bug in function PdfPredictorDecoder::Decode() of
> file PdfFiltersPrivate.cpp. You can test with pdf files that are
> converted from .bmp or .jpg by Adobe Acrobat.
> if( m_nCurRowIndex > m_nRows )
> {
> m_nCurRowIndex = 0;
> m_nCurPredictor = m_nPredictor >= 10 ? *pBuffer + 10 :
> *pBuffer;
> }
> else
> {
> ...
> case 12: // png up
> m_pPrev[m_nCurRowIndex] += *pBuffer;
> // Here m_nCurRowIndex may equal to m_nRows, and beyond the array
> boundary.
> pStream->Write( &m_pPrev[m_nCurRowIndex], 1 );
> ...
> }
>
> 2. PoDoFo will failed to parse pdf file if there are some syntax error
> in any dictionay.
> For example, for the following data, there is string in ( ), and
> the string contains two '('. PoDoFo will not parse the string
> correctly until EOF of the file.
> There are no bad syntax tolerance codes in the library. I think
> the bugs should be fixed.
> "... << ... /Title (....(..(hello world....) >> endobj ... "
>
> 3. If I open a pdf file (converted from .vsd file type) with PoDoFo,
> and add some custom attributes into Info dictionary, and write the
> whole back to a new pdf file.
> Then the new generated file will generate many new dictionaries,
> such as below data. And later if I add new custom attributes to the
> new generated pdf file,
> PoDoFo will parse the below data failed with "Invalid data type"
> error message. (# is not a delimiter)
> "100 0 obj << /C /# # # # # # # # ... /K ... >> endobj"
>
> 4. PoDoFo failed to parse PDF Portfolio file type with error message:
> No trailer was found in the PDF file.
>
> We will be appreciate if your team can fix these bugs in the new
> verson of PoDoFo code. Thanks very much!
>
> Regards,
>
> -Derek
- --------------------------------------------------------------------
STATEMENT OF CONFIDENTIALITY
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. No representation is made on
its accuracy or completeness of the information contained in this electronic
message. Certain assumptions may have been made in the preparation of this
material as at this date, and are subject to change without notice. If you are
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this e-mail and any attachment(s) is strictly
prohibited. Please reply to the sender at NextLabs Inc and destroy all copies
of this message and any attachments from your system.
======================================================================-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users