diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-03-25 20:04:18 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-03-25 20:04:18 +0000 |
commit | 8326c129217aa30a7ca20219dd9e107b1a0c5623 (patch) | |
tree | ad34ae900c39e9b7aae6d8912e92b4ed56d297d3 /filter | |
parent | f8e5a7b4988a506d284a2a286167fd5d76764d8a (diff) | |
download | cups-8326c129217aa30a7ca20219dd9e107b1a0c5623.tar.gz |
Fix another potential buffer overflow (STR #4600)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12572 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'filter')
-rw-r--r-- | filter/rastertoepson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c index 87243a966..7edd2097f 100644 --- a/filter/rastertoepson.c +++ b/filter/rastertoepson.c @@ -274,7 +274,7 @@ StartPage( if (header->cupsCompression || DotBytes) { - if ((CompBuffer = calloc(2, header->cupsWidth)) == NULL) + if ((CompBuffer = calloc(2, header->cupsWidth + 1)) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); |