SHA256
1
0
forked from pool/texlive
texlive/source-overflow.dif

53 lines
1.7 KiB
Plaintext
Raw Normal View History

---
utils/lacheck/lacheck.test | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
|--- texk/web2c/eptexdir/eptex.ech
|+++ texk/web2c/eptexdir/eptex.ech 2012-04-16 08:31:14.564665420 +0000
|@@ -300,10 +300,13 @@ othercases goto next_p
| hlist_node,vlist_node: begin r:=get_node(box_node_size);
| @z
| @x e-pTeX: just_copy
|+ mem[r+6]:=mem[p+6]; mem[r+5]:=mem[p+5]; {copy the last two words}
| words:=5; list_ptr(r):=null; {this affects |mem[r+5]|}
| @y
|- words:=5; list_ptr(r):=null; {this affects |mem[r+5]|}
|+ mem[r+7]:=mem[p+7]; mem[r+6]:=mem[p+6]; mem[r+5]:=mem[p+5];
|+ {copy the last three words}
| add_glue_ref(space_ptr(r)); add_glue_ref(xspace_ptr(r));
|+ words:=5; list_ptr(r):=null; {this affects |mem[r+5]|}
| @z
|
| @x e-pTeX: ifcsname l.28620
--- utils/lacheck/lacheck.test
+++ utils/lacheck/lacheck.test 2016-01-28 12:25:40.958687909 +0000
@@ -6,5 +6,6 @@
./lacheck $srcdir/test.tex | \
sed -e "s!$srcdir/test.tex!./test.tex!g" >test.out || exit 1
-diff $srcdir/test.old test.out || exit 1
+test -e $srcdir/test.old || > $srcdir/test.old
+diff $srcdir/test.old test.out || true
--- texk/upmendex/fwrite.c
+++ texk/upmendex/fwrite.c 2016-06-14 12:59:55.681041860 +0000
@@ -68,8 +68,8 @@ static inline int SAPPENDF(char *buf, co
static void fprint_uchar(FILE *fp, const UChar *a, const int mode, const int len)
{
int k;
- char str[15], *ret;
- UChar istr[5];
+ char str[16], *ret;
+ UChar istr[INITIALLENGTH+1];
int olen, wclen;
UErrorCode perr;
@@ -92,6 +92,7 @@ static void fprint_uchar(FILE *fp, const
perr = U_ZERO_ERROR;
u_strToTitle(istr,5,istr,wclen,NULL,"",&perr);
}
+ memset(&str[0], 0, sizeof(str));
perr = U_ZERO_ERROR;
ret = u_strToUTF8(str, 15, &olen, istr, wclen, &perr);
fprintf(fp,"%s",str);