summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Glassey <wdg@debian.org>2018-11-03 13:34:07 +0700
committerTeus Benschop <teusjannette@gmail.com>2018-11-10 21:10:09 +0700
commit70090da73f95ee90e15650d853744526b5f47e68 (patch)
tree4b8fce727ab045eef1a846659bb90f18719477e6
parent5d5b24fbf55d01c209840b4861143fc3e8796682 (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;