You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
5 years ago
|
diff -rupN --no-dereference podofo-0.9.6/src/base/PdfParser.h podofo-0.9.6-new/src/base/PdfParser.h
|
||
|
--- podofo-0.9.6/src/base/PdfParser.h 2018-04-30 21:21:55.000000000 +0200
|
||
|
+++ podofo-0.9.6-new/src/base/PdfParser.h 2020-07-04 10:03:14.047752638 +0200
|
||
|
@@ -39,7 +39,7 @@
|
||
|
#include "PdfVecObjects.h"
|
||
|
|
||
|
#define W_ARRAY_SIZE 3
|
||
|
-#define W_MAX_BYTES 4
|
||
|
+#define W_MAX_BYTES 8
|
||
|
|
||
|
namespace PoDoFo {
|
||
|
|
||
|
diff -rupN --no-dereference podofo-0.9.6/src/base/PdfXRefStreamParserObject.cpp podofo-0.9.6-new/src/base/PdfXRefStreamParserObject.cpp
|
||
|
--- podofo-0.9.6/src/base/PdfXRefStreamParserObject.cpp 2018-02-18 13:02:28.000000000 +0100
|
||
|
+++ podofo-0.9.6-new/src/base/PdfXRefStreamParserObject.cpp 2020-07-04 10:03:14.047752638 +0200
|
||
|
@@ -223,7 +223,7 @@ void PdfXRefStreamParserObject::ReadXRef
|
||
|
{
|
||
|
int i;
|
||
|
pdf_int64 z;
|
||
|
- unsigned long nData[W_ARRAY_SIZE];
|
||
|
+ pdf_uint64 nData[W_ARRAY_SIZE];
|
||
|
|
||
|
for( i=0;i<W_ARRAY_SIZE;i++ )
|
||
|
{
|
||
|
@@ -239,7 +239,8 @@ void PdfXRefStreamParserObject::ReadXRef
|
||
|
nData[i] = 0;
|
||
|
for( z=W_MAX_BYTES-lW[i];z<W_MAX_BYTES;z++ )
|
||
|
{
|
||
|
- nData[i] = (nData[i] << 8) + static_cast<unsigned char>(*pBuffer);
|
||
|
+ nData[i] <<= 8;
|
||
|
+ nData[i] += static_cast<unsigned char>(*pBuffer);
|
||
|
++pBuffer;
|
||
|
}
|
||
|
}
|
||
|
diff -rupN --no-dereference podofo-0.9.6/src/base/PdfXRefStreamParserObject.h podofo-0.9.6-new/src/base/PdfXRefStreamParserObject.h
|
||
|
--- podofo-0.9.6/src/base/PdfXRefStreamParserObject.h 2014-06-07 00:13:22.000000000 +0200
|
||
|
+++ podofo-0.9.6-new/src/base/PdfXRefStreamParserObject.h 2020-07-04 10:03:14.047752638 +0200
|
||
|
@@ -38,7 +38,7 @@
|
||
|
#include "PdfParserObject.h"
|
||
|
|
||
|
#define W_ARRAY_SIZE 3
|
||
|
-#define W_MAX_BYTES 4
|
||
|
+#define W_MAX_BYTES 8
|
||
|
|
||
|
namespace PoDoFo {
|
||
|
|