22 lines
786 B
Diff
22 lines
786 B
Diff
|
From b5049cb17ae3d15b2b26890de0e24d0fecc080f5 Mon Sep 17 00:00:00 2001
|
||
|
From: Christian Egli <christian.egli@sbs.ch>
|
||
|
Date: Mon, 4 Jun 2018 15:47:28 +0200
|
||
|
Subject: [PATCH] Fix yet another buffer overflow in the braille table parser
|
||
|
|
||
|
Reported by Henri Salo
|
||
|
|
||
|
Fixes #593
|
||
|
diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c
|
||
|
index 81a2ea1..ba50064 100644
|
||
|
--- a/liblouis/compileTranslationTable.c
|
||
|
+++ b/liblouis/compileTranslationTable.c
|
||
|
@@ -3596,7 +3596,7 @@ compileHyphenation (FileInfo * nested, CharsString * encoding)
|
||
|
HyphenationTrans *holdPointer;
|
||
|
HyphenHashTab *hashTab;
|
||
|
CharsString word;
|
||
|
- char pattern[MAXSTRING];
|
||
|
+ char pattern[MAXSTRING + 1];
|
||
|
unsigned int stateNum = 0, lastState = 0;
|
||
|
int i, j, k = encoding->length;
|
||
|
widechar ch;
|