texlive[50765] Build/source/texk/dvipsk: PSFILESIZ off by one
commits+karl at tug.org
commits+karl at tug.org
Fri Apr 5 00:03:57 CEST 2019
Revision: 50765
http://tug.org/svn/texlive?view=revision&revision=50765
Author: karl
Date: 2019-04-05 00:03:56 +0200 (Fri, 05 Apr 2019)
Log Message:
-----------
PSFILESIZ off by one
Modified Paths:
--------------
trunk/Build/source/texk/dvipsk/ChangeLog
trunk/Build/source/texk/dvipsk/dospecial.c
Modified: trunk/Build/source/texk/dvipsk/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipsk/ChangeLog 2019-04-04 21:45:36 UTC (rev 50764)
+++ trunk/Build/source/texk/dvipsk/ChangeLog 2019-04-04 22:03:56 UTC (rev 50765)
@@ -1,3 +1,8 @@
+2019-04-05 Karl Berry <karl at tug.org>
+
+ * dospecial.c (dospecial): off by one with PSFILESIZ.
+ Report from Andy Nguyen of ETH Zurich.
+
2019-03-30 Karl Berry <karl at freefriends.org>
* emspecial.c (bmpgraph): avoid writing after isblack
Modified: trunk/Build/source/texk/dvipsk/dospecial.c
===================================================================
--- trunk/Build/source/texk/dvipsk/dospecial.c 2019-04-04 21:45:36 UTC (rev 50764)
+++ trunk/Build/source/texk/dvipsk/dospecial.c 2019-04-04 22:03:56 UTC (rev 50765)
@@ -654,7 +654,7 @@
p += 8;
while (*p && !isspace((unsigned char)*p)) {
- if (psfilelen < PSFILESIZ) {
+ if (psfilelen < PSFILESIZ - 1) {
psfile[psfilelen] = *p;
psfilelen++;
p++;
More information about the tex-live-commits
mailing list