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-12 23:05:48 +0700
commitec8b3183965e24f5dc037b84294febf92fa83e8e (patch)
treeb389ffb120ebd57535fbc355ab8a5095dc260ee2
parent44a02b8c6c870a02186d74685b50542ccab60f72 (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;