From 481a2e35a254317baadbccfa18b41e551b9a522a Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 11:30:50 +0000 Subject: Apply patch cups-rastertoepson-crash.patch patch_name: cups-rastertoepson-crash.patch present_in_specfile: true --- diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c index 4efe669..e8fe0c6 100644 --- a/filter/rastertoepson.c +++ b/filter/rastertoepson.c @@ -307,7 +307,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);