Package: liblouis / 3.0.0-3+deb9u4

cve-2018-12085 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit dbfa58bb128cae86729578ac596056b3385817ef
Author: Christian Egli <christian.egli@sbs.ch>
Date:   Wed Jun 6 16:41:53 2018 +0200

    Check index before writing to result->chars
    
    Fixes #595

---
 liblouis/compileTranslationTable.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/liblouis/compileTranslationTable.c
+++ b/liblouis/compileTranslationTable.c
@@ -1505,12 +1505,12 @@ parseChars (FileInfo * nested, CharsStri
 		}
 	      in++;
 	    }
-	  result->chars[out++] = (widechar) ch;
 	  if (out >= MAXSTRING)
 	    {
 	      result->length = out;
 	      return 1;
 	    }
+	  result->chars[out++] = (widechar) ch;
 	  continue;
 	}
       lastOutSize = out;