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

diff -urp liblouis-3.3.0.orig/liblouis/lou_translateString.c liblouis-3.3.0/liblouis/lou_translateString.c
--- liblouis-3.3.0.orig/liblouis/lou_translateString.c	2017-09-04 09:40:14.000000000 -0500
+++ liblouis-3.3.0/liblouis/lou_translateString.c	2019-03-11 14:37:51.626519258 -0500
@@ -362,7 +362,9 @@ matchCurrentInput (const widechar *curre
 {
   int k;
   int kk = passSrc;
-  for (k = passIC + 2; k < passIC + 2 + passInstructions[passIC + 1]; k++)
+	for (k = passIC + 2;
+			((k < passIC + 2 + passInstructions[passIC + 1]) && currentInput[kk]);
+			k++)
     if (currentInput[kk] == ENDSEGMENT || passInstructions[k] !=
 	currentInput[kk++])
       return 0;
openSUSE Build Service is sponsored by