diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-06 21:19:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-06 21:19:51 +0000 |
commit | 58c54fc5fd1a8263d56fd49e67f1dff3c9a0faea (patch) | |
tree | 56dd8e475e74b5075a4c311b9076a8a5adac000a /Build | |
parent | c0f71e71a1ea5d7d5d35cb6ecbb02b91ba4f27f3 (diff) |
check to avoid crash on recursive vf
git-svn-id: svn://tug.org/texlive/trunk@40267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 8 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/pdftex.web | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index bdc4f56dbff..717bb9988a1 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,11 @@ +2016-04-06 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * pdftex.web (Replace |z|...): also check alpha<@'400 + to avoid crash with pathological/recursive virtual fonts. + Report from Hans and Luigi, 12 Nov 2015 19:51:59 (et al.), per + http://tracker.luatex.org/view.php?id=560#c1508 + (Installed by Karl.) + 2016-04-06 Karl Berry <karl@tug.org> * pdftexextra.h (COPYRIGHT_HOLDER): don't specifically mention peb diff --git a/Build/source/texk/web2c/pdftexdir/pdftex.web b/Build/source/texk/web2c/pdftexdir/pdftex.web index 15147b33ab3..180f36e934c 100644 --- a/Build/source/texk/web2c/pdftexdir/pdftex.web +++ b/Build/source/texk/web2c/pdftexdir/pdftex.web @@ -13214,7 +13214,7 @@ end @ @<Replace |z|...@>= begin alpha:=16; if z>=@'1000000000 then pdf_error("font", "size is too large"); -while z>=@'40000000 do +while (z>=@'40000000) and (alpha<@'400) do begin z:=z div 2; alpha:=alpha+alpha; end; beta:=256 div alpha; alpha:=alpha*z; |