Hi Here are some patches to fix some problems in the PoDoFo unit tests
podofo-GetTempFilename.patch On Windows the GetTempPath function can return 261 characters (MAX_PATH+1) but the buffer assigned inTestUtils.cpp is 256 characters. The patch increases the buffer size to 261 characters. podofo-Arial.patch The Encryption and Pages Tree unit tests fail if the font ‘Arial’ is not installed. This patch changes ‘Arial’ to PODOFO_HPDF_FONT_HELVETICA, one of the fonts in PODOFO_BUILTIN_FONTS Podofo-NoOpenSSL.patch The Encryption unit tests fail with unexpected exception failures if PoDoFo is compiled without OpenSSL support because the PdfEncrypt::CreatePdfEncrypt methods throw an ePdfError_NotCompiled exception. This patch checks that ePdfError_NotCompiled is thrown when if PODOFO_HAVE_OPENSSL is not defined. The patch has been constructed to avoid any behavior changes when PODOFO_HAVE_OPENSSL is defined by rethrowing exception in methods that didn’t have try … catch previously. Patches tested on Windows / Mac without OpenSSL support. Not tested on Linux. Best Regards Mark Mark Rogers - mark.rog...@powermapper.com PowerMapper Software Ltd - www.powermapper.com Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL
podofo-Arial.patch
Description: podofo-Arial.patch
podofo-NoOpenSSL.patch
Description: podofo-NoOpenSSL.patch
podofo-GetTempFilename.patch
Description: podofo-GetTempFilename.patch
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users