Hi Mark,

Thanks for the bug fix. I commited it to SVN.

Best regards,
        Dom

Am Sonntag 14 Februar 2010 schrieb Mark Rogers:
> The PdfInputDevice constructor in trunk may fail because the filename is
>  copied to a buffer (pStr) which isn't null terminated.
> 
> PdfInputDevice::PdfInputDevice( const wchar_t* pszFilename )
> {
>     this->Init();
> 
>     if( !pszFilename )
>     {
>         PODOFO_RAISE_ERROR( ePdfError_InvalidHandle );
>     }
> 
>     try {
>         //m_pStream = new std::ifstream( pszFilename, std::ios::binary );
>         size_t strLen = wcslen(pszFilename);
>         char * pStr = new char[strLen+1];
>         wcstombs(pStr, pszFilename, strLen);
> 
> I think the last line should read:
> 
>         wcstombs(pStr, pszFilename, strLen+1);
> 
> Regards
> Mark
> 
> Mark Rogers - mark.rog...@electrum.co.uk
> Electrum Multimedia Ltd - http://www. electrum.co.uk
> Registered in Scotland No 158435 Registered Office 50 Lothian Road
> 
> 
> 
> ---------------------------------------------------------------------------
> --- SOLARIS 10 is the OS for Data Centers - provides features such as
>  DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
> 


-- 
**********************************************************************
Dominik Seichter - domseich...@web.de
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to