From 64ede28ec07c7ac95cdd70d5340c86bd06dbcda7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 22 Jul 2019 08:26:43 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1644 --- ChangeLog | 7 +++++++ coders/ps.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c78daa008..440f25a1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-07-22 7.0.8-57 Cristy + * Release ImageMagick version 7.0.8-57, GIT revision 15... + +2019-07-22 7.0.8-57 Cristy + * Heap-buffer-overflow in Postscript coder (reference + https://github.com/ImageMagick/ImageMagick/issues/1644). + 2019-07-20 7.0.8-56 Cristy * Release ImageMagick version 7.0.8-56, GIT revision 15936:2ac4147:20190720. diff --git a/coders/ps.c b/coders/ps.c index 55f53652a..73aae13b5 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -430,7 +430,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, if (c == EOF) break; *q++=(unsigned char) c; - extent-=2; + extent-=MagickMin(extent,2); } SetStringInfoLength(ps_info->photoshop_profile,length); continue; -- 2.40.0