File libmspack-CVE-2018-14682.patch of Package libmspack.26620
Index: libmspack-0.4alpha/mspack/chmd.c
===================================================================
--- libmspack-0.4alpha.orig/mspack/chmd.c
+++ libmspack-0.4alpha/mspack/chmd.c
@@ -831,7 +831,7 @@ static int search_chunk(struct mschmd_he
# endif
# define TOLOWER(x) tolower(x)
#else
-# define TOLOWER(x) (((x)<0||(x)>256)?(x):mspack_tolower_map[(x)])
+# define TOLOWER(x) (((x)<0||(x)>255)?(x):mspack_tolower_map[(x)])
/* Map of char -> lowercase char for the first 256 chars. Generated with:
* LC_CTYPE=en_GB.utf-8 perl -Mlocale -le 'print map{ord(lc chr).","} 0..255'
*/