File: bmp-Fix-loading-of-bitmaps-that-have-bottom-down-pixel-or.patch

package info (click to toggle)
gdk-pixbuf 2.44.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,704 kB
  • sloc: ansic: 30,047; makefile: 120; python: 110; sh: 73; perl: 56; sed: 16; javascript: 10; xml: 9
file content (26 lines) | stat: -rw-r--r-- 757 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
26
From: correctmost <136447-correctmost@users.noreply.gitlab.gnome.org>
Date: Wed, 24 Sep 2025 13:25:36 -0400
Subject: bmp: Fix loading of bitmaps that have bottom-down pixel order

Fixes: 427b566796

Closes #271

Origin: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/241
---
 gdk-pixbuf/io-bmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 0eca48e..f1b68a5 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -129,7 +129,7 @@ static void DumpBIH(unsigned char *BIH)
 struct headerpair {
 	guint32 size;
 	guint32 width;
-	guint32 height;
+	gint32 height;
 	guint depth;
 	guint Negative;		/* Negative = 1 -> top down BMP,
 				   Negative = 0 -> bottom up BMP */