tetex: patch off-by-one to fix segfault
Fixes #32264. Patch based on one from Fedora texlive-2007-66 source rpm. References: https://bugzilla.redhat.com/show_bug.cgi?id=754517 http://tug.org/pipermail/tex-k/2011-July/002317.html https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633011 https://www.mail-archive.com/tetex@dbs.uni-hannover.de/msg00968.html Redhat discussion suggests this happens when using -Wl,-z,relro (or other linker flags) that change the default memory layout.
This commit is contained in:
parent
80b6ef9f19
commit
5c81453477
2 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
12
pkgs/tools/typesetting/tex/tetex/extramembot.patch
Normal file
12
pkgs/tools/typesetting/tex/tetex/extramembot.patch
Normal 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;
|
Loading…
Reference in a new issue