diff options
Diffstat (limited to 'Build/source/texk/dviout-util/chkdvifont.c')
-rw-r--r-- | Build/source/texk/dviout-util/chkdvifont.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/dviout-util/chkdvifont.c b/Build/source/texk/dviout-util/chkdvifont.c index 103285dda10..42515bb1d6b 100644 --- a/Build/source/texk/dviout-util/chkdvifont.c +++ b/Build/source/texk/dviout-util/chkdvifont.c @@ -320,6 +320,11 @@ int main(int argc, char **argv) } } + if(strlen(argv[argc-1]) >= MAXPATH) { + fprintf(stderr, "Too long filename\n"); + exit(255); + } + /* check file extension */ if (!f_t){ pt = argv[argc-1]; |