summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-04-04 22:03:56 +0000
committerKarl Berry <karl@freefriends.org>2019-04-04 22:03:56 +0000
commitdfde2a3338a5d82e49f4337a1e0f31c0e328c223 (patch)
tree97efb5a85a7beabde2d33f72e5e54552253e6d79 /Build/source/texk/dvipsk
parent041d86507df00ef548c9829d9211e7428d73f555 (diff)
PSFILESIZ off by one
git-svn-id: svn://tug.org/texlive/trunk@50765 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk')
-rw-r--r--Build/source/texk/dvipsk/ChangeLog5
-rw-r--r--Build/source/texk/dvipsk/dospecial.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index f3a3fc8bb26..1ed0bf91ad3 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-05 Karl Berry <karl@tug.org>
+
+ * dospecial.c (dospecial): off by one with PSFILESIZ.
+ Report from Andy Nguyen of ETH Zurich.
+
2019-03-30 Karl Berry <karl@freefriends.org>
* emspecial.c (bmpgraph): avoid writing after isblack
diff --git a/Build/source/texk/dvipsk/dospecial.c b/Build/source/texk/dvipsk/dospecial.c
index b17255fe5c2..2d46e39f379 100644
--- a/Build/source/texk/dvipsk/dospecial.c
+++ b/Build/source/texk/dvipsk/dospecial.c
@@ -654,7 +654,7 @@ case 'e':
p += 8;
while (*p && !isspace((unsigned char)*p)) {
- if (psfilelen < PSFILESIZ) {
+ if (psfilelen < PSFILESIZ - 1) {
psfile[psfilelen] = *p;
psfilelen++;
p++;