texlive[50125] Build/source/texk/dviout-util: chkdvifont.c: forbid
commits+hironobu at tug.org
commits+hironobu at tug.org
Mon Feb 25 15:46:59 CET 2019
Revision: 50125
http://tug.org/svn/texlive?view=revision&revision=50125
Author: hironobu
Date: 2019-02-25 15:46:59 +0100 (Mon, 25 Feb 2019)
Log Message:
-----------
chkdvifont.c: forbid too long file name
Modified Paths:
--------------
trunk/Build/source/texk/dviout-util/ChangeLog
trunk/Build/source/texk/dviout-util/chkdvifont.c
Modified: trunk/Build/source/texk/dviout-util/ChangeLog
===================================================================
--- trunk/Build/source/texk/dviout-util/ChangeLog 2019-02-25 10:27:33 UTC (rev 50124)
+++ trunk/Build/source/texk/dviout-util/ChangeLog 2019-02-25 14:46:59 UTC (rev 50125)
@@ -1,3 +1,7 @@
+2019-02-25 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
+
+ * chkdvifont.c: Forbid too long file name.
+
2019-02-06 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
* chkdvifont.c: Detect new JFM spec.
Modified: trunk/Build/source/texk/dviout-util/chkdvifont.c
===================================================================
--- trunk/Build/source/texk/dviout-util/chkdvifont.c 2019-02-25 10:27:33 UTC (rev 50124)
+++ trunk/Build/source/texk/dviout-util/chkdvifont.c 2019-02-25 14:46:59 UTC (rev 50125)
@@ -320,6 +320,11 @@
}
}
+ if(strlen(argv[argc-1]) >= MAXPATH) {
+ fprintf(stderr, "Too long filename\n");
+ exit(255);
+ }
+
/* check file extension */
if (!f_t){
pt = argv[argc-1];
More information about the tex-live-commits
mailing list