File openjpeg-CVE-2020-27823.patch of Package openjpeg.23765
Index: openjpeg-1.5.2/applications/codec/convert.c
===================================================================
--- openjpeg-1.5.2.orig/applications/codec/convert.c
+++ openjpeg-1.5.2/applications/codec/convert.c
@@ -3211,8 +3211,8 @@ opj_image_t *pngtoimage(const char *read
image->x0 = params->image_offset_x0;
image->y0 = params->image_offset_y0;
- image->x1 = image->x0 + (width - 1) * sub_dx + 1 + image->x0;
- image->y1 = image->y0 + (height - 1) * sub_dy + 1 + image->y0;
+ image->x1 = image->x0 + (width - 1) * sub_dx + 1;
+ image->y1 = image->y0 + (height - 1) * sub_dy + 1;
r = image->comps[0].data;
g = image->comps[1].data;