mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
imagemagick: patch CVE-2025-53019
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-53019 Pick the patch mentioned in the related github advisory. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
|||||||
|
From 8afe85d586b15b3b09c5c3c86a6d62b53ab8899e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dirk Lemstra <dirk@lemstra.org>
|
||||||
|
Date: Fri, 27 Jun 2025 14:51:57 +0200
|
||||||
|
Subject: [PATCH] Fixed memory leak when entering StreamImage multiple times.
|
||||||
|
|
||||||
|
CVE: CVE-2025-53019
|
||||||
|
Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/fc3ab0812edef903bbb2473c0ee652ddfd04fe5c]
|
||||||
|
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
|
||||||
|
---
|
||||||
|
MagickCore/stream.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/MagickCore/stream.c b/MagickCore/stream.c
|
||||||
|
index 786dabb52..22a0c9eee 100644
|
||||||
|
--- a/MagickCore/stream.c
|
||||||
|
+++ b/MagickCore/stream.c
|
||||||
|
@@ -1321,7 +1321,8 @@ MagickExport Image *StreamImage(const ImageInfo *image_info,
|
||||||
|
image_info->filename);
|
||||||
|
read_info=CloneImageInfo(image_info);
|
||||||
|
stream_info->image_info=image_info;
|
||||||
|
- stream_info->quantum_info=AcquireQuantumInfo(image_info,(Image *) NULL);
|
||||||
|
+ if (stream_info->quantum_info == (QuantumInfo *) NULL)
|
||||||
|
+ stream_info->quantum_info=AcquireQuantumInfo(image_info,(Image *) NULL);
|
||||||
|
if (stream_info->quantum_info == (QuantumInfo *) NULL)
|
||||||
|
{
|
||||||
|
read_info=DestroyImageInfo(read_info);
|
||||||
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt
|
|||||||
file://0001-Correct-out-of-bounds-read-of-a-single-byte.patch \
|
file://0001-Correct-out-of-bounds-read-of-a-single-byte.patch \
|
||||||
file://0001-Added-extra-checks-to-make-sure-we-don-t-get-stuck-i.patch \
|
file://0001-Added-extra-checks-to-make-sure-we-don-t-get-stuck-i.patch \
|
||||||
file://0002-Added-missing-return.patch \
|
file://0002-Added-missing-return.patch \
|
||||||
|
file://0001-Fixed-memory-leak-when-entering-StreamImage-multiple.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "a2d96f40e707ba54b57e7d98c3277d3ea6611ace"
|
SRCREV = "a2d96f40e707ba54b57e7d98c3277d3ea6611ace"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user