Merge pull request #32528 from dtzWill/fix/issue-32264

tetex: patch off-by-one to fix segfault
This commit is contained in:
Jörg Thalheim 2017-12-10 01:27:21 +00:00 committed by GitHub
commit 05d2a9efb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation {
find ./ -name "config.guess" -exec rm {} \; -exec ln -s ${automake}/share/automake-*/config.guess {} \;
'' else null;
patches = [ ./environment.patch ./getline.patch ./clang.patch ];
patches = [ ./environment.patch ./getline.patch ./clang.patch ./extramembot.patch ];
setupHook = ./setup-hook.sh;

View File

@ -0,0 +1,12 @@
diff -up texlive-2007/texk/web2c/tex.ch.extramembot texlive-2007/texk/web2c/tex.ch
--- texlive-2007/texk/web2c/tex.ch.extramembot 2006-12-19 02:11:11.000000000 +0100
+++ texlive-2007/texk/web2c/tex.ch 2011-11-30 12:03:32.052795763 +0100
@@ -365,7 +365,7 @@ for i:=@'177 to @'377 do xchr[i]:=i;
{Initialize enc\TeX\ data.}
for i:=0 to 255 do mubyte_read[i]:=null;
for i:=0 to 255 do mubyte_write[i]:=0;
-for i:=0 to 128 do mubyte_cswrite[i]:=null;
+for i:=0 to 127 do mubyte_cswrite[i]:=null;
mubyte_keep := 0; mubyte_start := false;
write_noexpanding := false; cs_converting := false;
special_printing := false; message_printing := false;