/[packages]/updates/5/gimp/current/SOURCES/plug-ins-TGA-16-bit-RGB-without-alpha-bit-is-also-va.patch
ViewVC logotype

Contents of /updates/5/gimp/current/SOURCES/plug-ins-TGA-16-bit-RGB-without-alpha-bit-is-also-va.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1188362 - (show annotations) (download)
Sun Dec 31 16:02:57 2017 UTC (17 months, 3 weeks ago) by luigiwalser
File size: 1333 byte(s)
add patches from debian to fix CVE-2017-1778[4-9]
1 From: Jehan <jehan@girinstud.io>
2 Date: Wed, 20 Dec 2017 13:26:26 +0100
3 Subject: plug-ins: TGA 16-bit RGB (without alpha bit) is also valid.
4 Origin: https://git.gnome.org/browse/GIMP/commit/?id=22e2571c25425f225abdb11a566cc281fca6f366
5 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739134
6
7 According to some spec on the web, 16-bit RGB is also valid. In this
8 case, the last bit is simply ignored (at least that's how it is
9 implemented right now).
10
11 (cherry picked from commit 8ea316667c8a3296bce2832b3986b58d0fdfc077)
12 ---
13 plug-ins/common/file-tga.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 diff --git a/plug-ins/common/file-tga.c b/plug-ins/common/file-tga.c
17 index 426acc2925..eb14a1dadc 100644
18 --- a/plug-ins/common/file-tga.c
19 +++ b/plug-ins/common/file-tga.c
20 @@ -568,7 +568,8 @@ load_image (const gchar *filename,
21 info.bpp != 24 && info.bpp != 32) ||
22 ((info.bpp == 15 || info.bpp == 24) &&
23 info.alphaBits != 0) ||
24 - (info.bpp == 16 && info.alphaBits != 1) ||
25 + (info.bpp == 16 && info.alphaBits != 1 &&
26 + info.alphaBits != 0) ||
27 (info.bpp == 32 && info.alphaBits != 8))
28 {
29 g_message ("Unhandled sub-format in '%s' (type = %u, bpp = %u, alpha = %u)",
30 --
31 2.15.1
32

  ViewVC Help
Powered by ViewVC 1.1.26