File: CVE-2025-43965.patch

package info (click to toggle)
imagemagick 8%3A7.1.1.43%2Bdfsg1-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 93,668 kB
  • sloc: ansic: 370,559; cpp: 22,835; xml: 11,549; perl: 6,280; sh: 6,203; makefile: 3,484; tcl: 459
file content (23 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Dirk Lemstra <dirk@lemstra.org>
Date: Sat, 8 Feb 2025 23:31:39 +0100
Subject: Update the image depth after this has been changed by
 SetQuantumFormat.

origin: https://github.com/ImageMagick/ImageMagick/commit/bac413a26073923d3ffb258adaab07fb3fe8fdc9
bug-debian-security: https://security-tracker.debian.org/tracker/CVE-2025-43965
---
 coders/miff.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/coders/miff.c b/coders/miff.c
index 355455b..887659e 100644
--- a/coders/miff.c
+++ b/coders/miff.c
@@ -1335,6 +1335,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
     if (quantum_format != UndefinedQuantumFormat)
       {
         status=SetQuantumFormat(image,quantum_info,quantum_format);
+        image->depth=quantum_info->depth;
         if (status == MagickFalse)
           ThrowMIFFException(ResourceLimitError,"MemoryAllocationFailed");
       }