File CVE-2018-11685.patch of Package liblouis.8510

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
Rebased by Mike Gorse <mgorse@suse.com>
---
diff -urp liblouis-3.3.0.orig/liblouis/compileTranslationTable.c liblouis-3.3.0/liblouis/compileTranslationTable.c
--- liblouis-3.3.0.orig/liblouis/compileTranslationTable.c	2018-08-07 18:19:22.377202557 -0500
+++ liblouis-3.3.0/liblouis/compileTranslationTable.c	2018-08-08 09:54:56.497507183 -0500
@@ -3585,7 +3585,7 @@ compileHyphenation (FileInfo * nested, C
   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;
openSUSE Build Service is sponsored by