File: 0001-Update-the-image-depth-after-this-has-been-changed-b.patch

package info (click to toggle)
imagemagick 8%3A6.9.11.60%2Bdfsg-1.6%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 76,816 kB
  • sloc: ansic: 349,503; cpp: 21,804; xml: 11,029; perl: 6,417; sh: 5,877; makefile: 3,042; tcl: 459
file content (25 lines) | stat: -rw-r--r-- 809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 64789006934b2974390aa060354ad318c34e0f6a Mon Sep 17 00:00:00 2001
From: Dirk Lemstra <dirk@lemstra.org>
Date: Tue, 11 Feb 2025 22:34:41 +0100
Subject: Update the image depth after this has been changed by
 SetQuantumFormat.

---
 coders/miff.c | 1 +
 1 file changed, 1 insertion(+)

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