File 0001-Fix-possible-out-of-bounds-write-from-a-followed-by-.patch of Package liblouis.8491

From edf8ee00197e5a9b062554bdca00fe1617d257a4 Mon Sep 17 00:00:00 2001
From: Mike Gorse <mgorse@suse.com>
Date: Tue, 29 Aug 2017 16:55:29 -0500
Subject: [PATCH 1/4] Fix possible out-of-bounds write from a \ followed by
 multiple newlines

Fixes CVE-2017-13738 and CVE-2017-13744.
---
diff -urp liblouis-2.6.4.orig/liblouis/compileTranslationTable.c liblouis-2.6.4/liblouis/compileTranslationTable.c
--- liblouis-2.6.4.orig/liblouis/compileTranslationTable.c	2015-08-31 09:27:50.000000000 -0500
+++ liblouis-2.6.4/liblouis/compileTranslationTable.c	2017-09-06 16:05:34.782143201 -0500
@@ -573,6 +573,7 @@ getALine (FileInfo * nested)
       if (pch == '\\' && ch == 10)
 	{
 	  nested->linelen--;
+	  pch = ch;
 	  continue;
 	}
       if (ch == 10 || nested->linelen >= MAXSTRING)
openSUSE Build Service is sponsored by