all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 21d5fd90dbcc8798968b617b3db0dc9ff34026e7 450 bytes (raw)
name: gnu/packages/patches/gd-CVE-2016-8670.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
diff -u -r libgd-2.2.3.old/src/gd_io_dp.c libgd-2.2.3/src/gd_io_dp.c
--- libgd-2.2.3.old/src/gd_io_dp.c	1969-12-31 19:00:00.000000000 -0500
+++ libgd-2.2.3/src/gd_io_dp.c	2016-10-15 15:49:04.478163658 -0400
@@ -276,7 +276,7 @@
 	if(remain >= len) {
 		rlen = len;
 	} else {
-		if(remain == 0) {
+		if(remain <= 0) {
 			/* 2.0.34: EOF is incorrect. We use 0 for
 			 * errors and EOF, just like fileGetbuf,
 			 * which is a simple fread() wrapper.

debug log:

solving 21d5fd9 ...
found 21d5fd9 in https://yhetil.org/guix/87bmylcri9.fsf@openmailbox.org/

applying [1/1] https://yhetil.org/guix/87bmylcri9.fsf@openmailbox.org/
diff --git a/gnu/packages/patches/gd-CVE-2016-8670.patch b/gnu/packages/patches/gd-CVE-2016-8670.patch
new file mode 100644
index 0000000..21d5fd9

1:11: space before tab in indent.
 	if(remain >= len) {
1:12: space before tab in indent.
 		rlen = len;
1:13: space before tab in indent.
 	} else {
1:16: space before tab in indent.
 			/* 2.0.34: EOF is incorrect. We use 0 for
1:17: space before tab in indent.
 			 * errors and EOF, just like fileGetbuf,
Checking patch gnu/packages/patches/gd-CVE-2016-8670.patch...
Applied patch gnu/packages/patches/gd-CVE-2016-8670.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

index at:
100644 21d5fd90dbcc8798968b617b3db0dc9ff34026e7	gnu/packages/patches/gd-CVE-2016-8670.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.