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-03 15:05:44 +0700
commit1e7a6da82de85f6a6568f3172146e16c8787146c (patch)
tree8f3a662acc9de123b1e3eb741ebc03b6be405014
parentbe39970fc4bf33488754a358309feea0f13efb72 (diff)
a very large word number could overflow buffer
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;