all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob e6220eed8610654581772011be654fb4ae2913cd 998 bytes (raw)
name: gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch 	 # note: path name is non-authoritative(*)

 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
27
28
29
30
31
32
33
34
35
36
 
Fix a null pointer dereference in png_set_text_2():

http://seclists.org/oss-sec/2016/q4/777

Patch adapted from upstream source repository:

https://sourceforge.net/p/libpng/code/ci/794a15fad6add4d636369d0b46f603a02995b2e2/

From 794a15fad6add4d636369d0b46f603a02995b2e2 Mon Sep 17 00:00:00 2001
From: Glenn Randers-Pehrson <glennrp at users.sourceforge.net>
Date: Thu, 29 Dec 2016 07:34:51 -0600
Subject: [PATCH] [libpng12] Fixed a potential null pointer dereference in
 png_set_text_2()

(bug report and patch by Patrick Keshishian).
---
 ANNOUNCE | 2 ++
 CHANGES  | 4 +++-
 png.c    | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/png.c b/png.c
index 08d7e86b7..a4934d1d5 100644
--- a/png.c
+++ b/png.c
@@ -393,6 +393,7 @@ png_free_data(png_structp png_ptr, png_infop info_ptr, png_uint_32 mask,
          png_free(png_ptr, info_ptr->text);
          info_ptr->text = NULL;
          info_ptr->num_text=0;
+         info_ptr->max_text=0;
       }
    }
 #endif
-- 
2.11.0


debug log:

solving e6220eed8 ...
found e6220eed8 in https://yhetil.org/guix/bf79446fbc1ef7ed281428ab6068ddab329ede01.1483034687.git.leo@famulari.name/

applying [1/1] https://yhetil.org/guix/bf79446fbc1ef7ed281428ab6068ddab329ede01.1483034687.git.leo@famulari.name/
diff --git a/gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch b/gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch
new file mode 100644
index 000000000..e6220eed8

1:40: trailing whitespace.
-- 
Checking patch gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch...
1:42: new blank line at EOF.
+
Applied patch gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 e6220eed8610654581772011be654fb4ae2913cd	gnu/packages/patches/libpng-1.2-fix-null-ptr-dereference.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.