aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/libpng-CVE-2016-10087.patch
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-12-30 14:29:48 -0500
committerLeo Famulari <leo@famulari.name>2016-12-30 14:33:21 -0500
commit858b9afeaf1b41dc524b50c568dccb38c8ef4e73 (patch)
tree9bc1d4e34027d2a435abd4a566c37a9bca7c0195 /gnu/packages/patches/libpng-CVE-2016-10087.patch
parent6023041346c79f7ac4105bba2552a82019fae840 (diff)
downloadguix-858b9afeaf1b41dc524b50c568dccb38c8ef4e73.tar
guix-858b9afeaf1b41dc524b50c568dccb38c8ef4e73.tar.gz
gnu: libpng: Mention CVE-2016-10087.
* gnu/packages/patches/libpng-fix-null-ptr-dereference.patch: Rename to ... * gnu/packages/patches/libpng-CVE-2016-10087.patch: ... this. * gnu/local.mk (dist_patch_DATA): Adjust. * gnu/packages/image.scm (libpng/fixed)[source]: Use renamed patch.
Diffstat (limited to 'gnu/packages/patches/libpng-CVE-2016-10087.patch')
-rw-r--r--gnu/packages/patches/libpng-CVE-2016-10087.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/patches/libpng-CVE-2016-10087.patch b/gnu/packages/patches/libpng-CVE-2016-10087.patch
new file mode 100644
index 0000000000..8093b3e448
--- /dev/null
+++ b/gnu/packages/patches/libpng-CVE-2016-10087.patch
@@ -0,0 +1,37 @@
+Fix CVE-2016-10087, a null pointer dereference in png_set_text_2():
+
+https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10087
+http://seclists.org/oss-sec/2016/q4/777
+
+Patch adapted from upstream source repository:
+
+https://sourceforge.net/p/libpng/code/ci/812768d7a9c973452222d454634496b25ed415eb/
+
+From 812768d7a9c973452222d454634496b25ed415eb Mon Sep 17 00:00:00 2001
+From: Glenn Randers-Pehrson <glennrp at users.sourceforge.net>
+Date: Thu, 29 Dec 2016 07:51:33 -0600
+Subject: [PATCH] [libpng16] Fixed a potential null pointer dereference in
+ png_set_text_2()
+
+(bug report and patch by Patrick Keshishian).
+---
+ ANNOUNCE | 2 ++
+ CHANGES | 2 ++
+ png.c | 1 +
+ 3 files changed, 5 insertions(+)
+
+diff --git a/png.c b/png.c
+index 8afc28fc2..2e05de159 100644
+--- a/png.c
++++ b/png.c
+@@ -477,6 +477,7 @@ png_free_data(png_const_structrp png_ptr, png_inforp 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
+