diff options
author | Michael R Sweet <michaelrsweet@gmail.com> | 2018-06-18 16:37:16 -0400 |
---|---|---|
committer | Michael R Sweet <michaelrsweet@gmail.com> | 2018-06-18 16:37:16 -0400 |
commit | 7e041a5e5569fdb339906eeb00e6706d562e228a (patch) | |
tree | 844949e6222a428b9562b96bc05f9ed37b9ef0d2 /filter | |
parent | bd121abd354cbfcbb4c5fa23408c0270e7243bc6 (diff) | |
download | cups-7e041a5e5569fdb339906eeb00e6706d562e228a.tar.gz |
Fix A6 crash bug in Epson 24-pin driver (Issue #5323)
Diffstat (limited to 'filter')
-rw-r--r-- | filter/rastertoepson.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c index 73e8d0600..4522e6b48 100644 --- a/filter/rastertoepson.c +++ b/filter/rastertoepson.c @@ -1,10 +1,11 @@ /* * EPSON ESC/P and ESC/P2 filter for CUPS. * - * Copyright 2007-2015 by Apple Inc. + * Copyright 2007-2018 by Apple Inc. * Copyright 1993-2007 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -301,7 +302,7 @@ StartPage( if (DotBytes) { - if ((LineBuffers[0] = calloc((size_t)DotBytes, header->cupsWidth * (size_t)(Shingling + 1))) == NULL) + if ((LineBuffers[0] = calloc((size_t)DotBytes, (header->cupsWidth + 7) * (size_t)(Shingling + 1))) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); |