diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-30 01:50:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-30 01:50:10 +0000 |
commit | 65969e10793eca240081c7f36b6b844c243dba00 (patch) | |
tree | 7431f36020419306449becf20e165ddfc645b79a /Build/source/texk/dvipsk/scanpage.c | |
parent | d26a25bf0e44eaad0cad5ddbcc71d69de823eb3f (diff) |
avoid arbitrary %s sprintf into fixed errbuf
git-svn-id: svn://tug.org/texlive/trunk@50650 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/scanpage.c')
-rw-r--r-- | Build/source/texk/dvipsk/scanpage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/scanpage.c b/Build/source/texk/dvipsk/scanpage.c index 824a8f5143f..ccb5142ee52 100644 --- a/Build/source/texk/dvipsk/scanpage.c +++ b/Build/source/texk/dvipsk/scanpage.c @@ -193,7 +193,8 @@ dochar: if (curfnt==NULL) error("! Bad DVI file: no font selected"); if (mychar>=curfnt->maxchars) { - sprintf(errbuf,"! invalid char %d from font %s", mychar, curfnt->name); + sprintf(errbuf,"! invalid char %d from font %.500s", + mychar, curfnt->name); error(errbuf); } if (curfnt->loaded == 2) { /* scanning a virtual font character */ |