unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob e62924a6a1c1df56282ca697d305a3b060e7262f 1144 bytes (raw)
name: gnu/packages/patches/nvi-private-regex-fixes.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
 
This patch originates from the Debian project, see https://www.debian.org/

14private_regex_fixes.dpatch by  <hesso@pool.math.tu-berlin.de>


Fixes to the private regex library; includes fix for #523934.

diff -Naur regex.orig/regcomp.c regex/regcomp.c
--- nvi-1.81.6.orig/regex/regcomp.c	2007-11-18 17:41:42.000000000 +0100
+++ nvi-1.81.6/regex/regcomp.c	2008-05-01 18:37:57.000000000 +0200
@@ -606,7 +606,8 @@
 		REQUIRE(starordinary, REG_BADRPT);
 		/* FALLTHROUGH */
 	default:
-		ordinary(p, c &~ BACKSL);
+	  /* ordinary(p, c &~ BACKSL); -- Fix potential overflow */
+	        ordinary(p, c & 0xff);
 		break;
 	}
 
diff -Naur regex.orig/regexec.c regex/regexec.c
--- nvi-1.81.6.orig/regex/regexec.c	2007-11-18 17:41:42.000000000 +0100
+++ nvi-1.81.6/regex/regexec.c	2008-05-01 18:38:00.000000000 +0200
@@ -63,7 +63,7 @@
 
 /* macros for manipulating states, small version */
 #define	states	int
-#define	states1	states		/* for later use in regexec() decision */
+typedef states states1;		/* for later use in regexec() decision */
 #define	CLEAR(v)	((v) = 0)
 #define	SET0(v, n)	((v) &= ~(1 << (n)))
 #define	SET1(v, n)	((v) |= 1 << (n))

debug log:

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

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

1:18: space before tab in indent.
 		REQUIRE(starordinary, REG_BADRPT);
1:19: space before tab in indent.
 		/* FALLTHROUGH */
1:20: space before tab in indent.
 	default:
1:24: space before tab in indent.
 		break;
1:25: space before tab in indent.
 	}
Checking patch gnu/packages/patches/nvi-private-regex-fixes.patch...
Applied patch gnu/packages/patches/nvi-private-regex-fixes.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 e62924a6a1c1df56282ca697d305a3b060e7262f	gnu/packages/patches/nvi-private-regex-fixes.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).