Newer
Older
Import / applications / MakePDF / 3rdParty / libharu / pr-patches / 0001-Fix-issue-63-HPDF_REAL_LEN-s-length-cause-crash.patch
From b536c76ea8b8206c2945f9a1fff10763556cc4cf Mon Sep 17 00:00:00 2001
From: Dmitry Veltishchev <vdm-photo@ya.ru>
Date: Wed, 16 Sep 2015 00:53:19 +0300
Subject: [PATCH] Fix issue #63 (HPDF_REAL_LEN's length cause crash)

---
 if/delphi/hpdf_consts.pas   | 2 +-
 if/freebasic/hpdf_consts.bi | 2 +-
 if/python/hpdf_consts.py    | 2 +-
 if/vb6/hpdf_consts.bas      | 2 +-
 include/hpdf_consts.h       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/if/delphi/hpdf_consts.pas b/if/delphi/hpdf_consts.pas
index 502bba7..8dda6d1 100644
--- a/if/delphi/hpdf_consts.pas
+++ b/if/delphi/hpdf_consts.pas
@@ -31,7 +31,7 @@ const
 {* buffer size which is required when we convert to character string. *}
   HPDF_TMP_BUF_SIZ = 256;
   HPDF_SHORT_BUF_SIZ = 32;
-  HPDF_REAL_LEN = 11;
+  HPDF_REAL_LEN = 15;
   HPDF_INT_LEN = 11;
   HPDF_TEXT_DEFAULT_LEN = 256;
   HPDF_UNICODE_HEADER_LEN = 2;
diff --git a/if/freebasic/hpdf_consts.bi b/if/freebasic/hpdf_consts.bi
index 9c13feb..a7cdbd3 100644
--- a/if/freebasic/hpdf_consts.bi
+++ b/if/freebasic/hpdf_consts.bi
@@ -15,7 +15,7 @@
 #define HPDF_NOERROR 0
 #define HPDF_TMP_BUF_SIZ 512
 #define HPDF_SHORT_BUF_SIZ 32
-#define HPDF_REAL_LEN 11
+#define HPDF_REAL_LEN 15
 #define HPDF_INT_LEN 11
 #define HPDF_TEXT_DEFAULT_LEN 256
 #define HPDF_UNICODE_HEADER_LEN 2
diff --git a/if/python/hpdf_consts.py b/if/python/hpdf_consts.py
index bb291ae..3596ad7 100644
--- a/if/python/hpdf_consts.py
+++ b/if/python/hpdf_consts.py
@@ -32,7 +32,7 @@ HPDF_NOERROR               =0
 # buffer size which is required when we convert to character string.
 HPDF_TMP_BUF_SIZ           =512
 HPDF_SHORT_BUF_SIZ         =32
-HPDF_REAL_LEN              =11
+HPDF_REAL_LEN              =15
 HPDF_INT_LEN               =11
 HPDF_TEXT_DEFAULT_LEN      =256
 HPDF_UNICODE_HEADER_LEN    =2
diff --git a/if/vb6/hpdf_consts.bas b/if/vb6/hpdf_consts.bas
index c1f800b..a2bc90a 100755
--- a/if/vb6/hpdf_consts.bas
+++ b/if/vb6/hpdf_consts.bas
@@ -32,7 +32,7 @@ Public Const HPDF_NOERROR = 0
 '/* buffer size which is required when we convert to character string. */
 Public Const HPDF_TMP_BUF_SIZ = 256
 Public Const HPDF_SHORT_BUF_SIZ = 32
-Public Const HPDF_REAL_LEN = 11
+Public Const HPDF_REAL_LEN = 15
 Public Const HPDF_INT_LEN = 11
 Public Const HPDF_TEXT_DEFAULT_LEN = 256
 Public Const HPDF_UNICODE_HEADER_LEN = 2
diff --git a/include/hpdf_consts.h b/include/hpdf_consts.h
index 2dbf396..a7a9b1b 100644
--- a/include/hpdf_consts.h
+++ b/include/hpdf_consts.h
@@ -32,7 +32,7 @@
 /* buffer size which is required when we convert to character string. */
 #define HPDF_TMP_BUF_SIZ            512
 #define HPDF_SHORT_BUF_SIZ          32
-#define HPDF_REAL_LEN               11
+#define HPDF_REAL_LEN               15
 #define HPDF_INT_LEN                11
 #define HPDF_TEXT_DEFAULT_LEN       256
 #define HPDF_UNICODE_HEADER_LEN     2
-- 
2.21.1 (Apple Git-122.3)