summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Glassey <wdg@debian.org>2018-11-03 13:34:07 +0700
committerDaniel Glassey <wdg@debian.org>2018-11-02 10:19:32 +0700
commit6a3afe8591cd076586a4d681b65b1d3790a65d88 (patch)
tree051e4d6496aec03efef7808ed45e32de4abefe53
parent598135df61fec195889337669e6432cdc5b1a077 (diff)
a very large word number could overflow bufferarchive/debian/1.8.1-4
Gbp-Pq: Name 0007-gbfwordjs.patch
-rw-r--r--src/modules/filters/gbfwordjs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/filters/gbfwordjs.cpp b/src/modules/filters/gbfwordjs.cpp
index b0f352e..0e8722f 100644
--- a/src/modules/filters/gbfwordjs.cpp
+++ b/src/modules/filters/gbfwordjs.cpp
@@ -65,7 +65,7 @@ char GBFWordJS::processText(SWBuf &text, const SWKey *key, const SWModule *modul
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;