diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-20 08:07:13 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-20 08:07:13 +0000 |
commit | dd0dfea56152032b37ed567aace96ca8c60d2f41 (patch) | |
tree | 1652db128314cec83d57db51b1299a7d8df94418 | |
parent | c92427dd9a326e7c7170aa7822f35866d96d3190 (diff) |
dvipsk: Avoid buffer overrun (from Werner Fink)
git-svn-id: svn://tug.org/texlive/trunk@24337 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/dospecial.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 93e09a6e6bb..4087e3c251b 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,8 @@ +2011-10-20 Werner Fink <werner@suse.de> + + * dospecial.c (fgetboundingbox): Increase `buf' size to avoid + overrun. + 2011-10-04 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am (EXTRA_DIST, DISTCLEANFILES): Make sure that diff --git a/Build/source/texk/dvipsk/dospecial.c b/Build/source/texk/dvipsk/dospecial.c index 25af13c567f..9986ec83daa 100644 --- a/Build/source/texk/dvipsk/dospecial.c +++ b/Build/source/texk/dvipsk/dospecial.c @@ -112,7 +112,7 @@ static void fgetboundingbox(char *f, float *llx_p, float *lly_p, float *urx_p, float *ury_p) { FILE *fp; - char buf[BUFSIZ]; + char buf[BUFSIZ+1]; fp = search(figpath, f, READ); if (fp == 0) |