diff options
author | glasseyes <dglassey@gmail.com> | 2018-11-03 10:48:28 +0700 |
---|---|---|
committer | glasseyes <dglassey@gmail.com> | 2018-11-03 12:13:29 +0700 |
commit | 88ad066477c57b1244e88d837d7b3aa42be40820 (patch) | |
tree | 09338455e8f528dbab7ec80d6e65d3e5e64072fa /debian/patches | |
parent | 2668c9c9909d47da62e75d5e7cb1a69c62fa9c55 (diff) |
sprintf in gbfwordjs patch
add comments to patches
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/0005-untgz-sprintf.patch | 4 | ||||
-rw-r--r-- | debian/patches/0006-powerpc64.patch | 4 | ||||
-rw-r--r-- | debian/patches/0007-gbfwordjs.patch | 15 | ||||
-rw-r--r-- | debian/patches/series | 1 |
4 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/0005-untgz-sprintf.patch b/debian/patches/0005-untgz-sprintf.patch index 2b6e8da..3b36228 100644 --- a/debian/patches/0005-untgz-sprintf.patch +++ b/debian/patches/0005-untgz-sprintf.patch @@ -1,3 +1,7 @@ +From: Daniel Glassey <wdg@debian.org> +Date: Sat, 3 Nov 2018 13:34:07 +0700 +Subject: remove strtime from untgz + --- a/src/utilfuns/zlib/untgz.c +++ b/src/utilfuns/zlib/untgz.c @@ -86,7 +86,6 @@ diff --git a/debian/patches/0006-powerpc64.patch b/debian/patches/0006-powerpc64.patch index fde9b1c..fbb8287 100644 --- a/debian/patches/0006-powerpc64.patch +++ b/debian/patches/0006-powerpc64.patch @@ -1,3 +1,7 @@ +From: Daniel Glassey <wdg@debian.org> +Date: Sat, 3 Nov 2018 13:34:07 +0700 +Subject: powerpc64 can define __s64 differently + Index: sword/include/sysdata.h =================================================================== --- sword.orig/include/sysdata.h diff --git a/debian/patches/0007-gbfwordjs.patch b/debian/patches/0007-gbfwordjs.patch new file mode 100644 index 0000000..5686d10 --- /dev/null +++ b/debian/patches/0007-gbfwordjs.patch @@ -0,0 +1,15 @@ +From: Daniel Glassey <wdg@debian.org> +Date: Sat, 3 Nov 2018 13:34:07 +0700 +Subject: a very large word number could overflow buffer + +--- a/src/modules/filters/gbfwordjs.cpp ++++ b/src/modules/filters/gbfwordjs.cpp +@@ -65,7 +65,7 @@ + bool intoken = false; + int word = 1; + char val[128]; +- char wordstr[5]; ++ char wordstr[12]; + unsigned int textStart = 0, lastAppendLen = 0, textEnd = 0; + SWBuf tmp; + bool newText = false; diff --git a/debian/patches/series b/debian/patches/series index 41cd01e..540a5e1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ abicompare.patch 0004-automake-subdir-objects.patch 0005-untgz-sprintf.patch 0006-powerpc64.patch +0007-gbfwordjs.patch |