diff options
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch | 25 | ||||
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch b/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch new file mode 100644 index 0000000000..51a441cfe3 --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | From 0d8ca198fd90d882e524a3bc2eed55aff5c737c1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Cristy <urban-warrior@imagemagick.org> | ||
| 3 | Date: Tue, 22 Mar 2022 20:11:27 -0400 | ||
| 4 | Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/4974 | ||
| 5 | |||
| 6 | CVE: CVE-2022-1115 | ||
| 7 | Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick6/commit/1f860f52bd8d58737ad883072203391096b30b51] | ||
| 8 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 9 | --- | ||
| 10 | coders/tiff.c | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/coders/tiff.c b/coders/tiff.c | ||
| 14 | index d8e9a8953..c3767c8c3 100644 | ||
| 15 | --- a/coders/tiff.c | ||
| 16 | +++ b/coders/tiff.c | ||
| 17 | @@ -1993,7 +1993,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, | ||
| 18 | number_pixels=(MagickSizeType) columns*rows; | ||
| 19 | if (HeapOverflowSanityCheck(rows,sizeof(*tile_pixels)) != MagickFalse) | ||
| 20 | ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); | ||
| 21 | - extent=TIFFTileSize(tiff); | ||
| 22 | + extent=4*MagickMax(rows*TIFFTileRowSize(tiff),TIFFTileSize(tiff)); | ||
| 23 | #if defined(TIFF_VERSION_BIG) | ||
| 24 | extent+=columns*sizeof(uint64); | ||
| 25 | #else | ||
diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb index 0b2eeb2ad4..350b504400 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | |||
| @@ -45,6 +45,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt | |||
| 45 | file://0011-ImageMagick-Add-support-patch-2-to-fix-CVE-2023-3415.patch \ | 45 | file://0011-ImageMagick-Add-support-patch-2-to-fix-CVE-2023-3415.patch \ |
| 46 | file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ | 46 | file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ |
| 47 | file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ | 47 | file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ |
| 48 | file://CVE-2022-1115.patch \ | ||
| 48 | " | 49 | " |
| 49 | 50 | ||
| 50 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" | 51 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" |
