all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob de7715c108d7239d2f2b93d2cada3e450bbef32c 507 bytes (raw)
name: gnu/packages/patches/nvi-safe-printf.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
 
This patch originates from the Debian project, see https://www.debian.org/

08safe_printf.dpatch by  <hesso@pool.math.tu-berlin.de>


Fix a format security bug.

diff -Naur nvi-1.81.6.orig/common/exf.c nvi-1.81.6/common/exf.c
--- nvi-1.81.6.orig/common/exf.c	2008-05-01 18:10:20.000000000 +0200
+++ nvi-1.81.6/common/exf.c	2008-05-01 18:10:30.000000000 +0200
@@ -1075,7 +1075,7 @@
 			*--s = '.';
 		}
 	}
-	msgq(sp, M_INFO, s);
+	msgq(sp, M_INFO, "%s", s);
 	if (nf)
 		FREE_SPACE(sp, p, 0);
 	return (0);

debug log:

solving de7715c ...
found de7715c in https://yhetil.org/guix/54BE9C68.9070103@gmail.com/

applying [1/1] https://yhetil.org/guix/54BE9C68.9070103@gmail.com/
diff --git a/gnu/packages/patches/nvi-safe-printf.patch b/gnu/packages/patches/nvi-safe-printf.patch
new file mode 100644
index 0000000..de7715c

1:18: space before tab in indent.
 			*--s = '.';
1:19: space before tab in indent.
 		}
1:20: space before tab in indent.
 	}
1:23: space before tab in indent.
 	if (nf)
1:24: space before tab in indent.
 		FREE_SPACE(sp, p, 0);
Checking patch gnu/packages/patches/nvi-safe-printf.patch...
Applied patch gnu/packages/patches/nvi-safe-printf.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

index at:
100644 de7715c108d7239d2f2b93d2cada3e450bbef32c	gnu/packages/patches/nvi-safe-printf.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.