unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 6769d17b85f8ef903f500c2ad2fbd3bba788b651 679 bytes (raw)
name: gnu/packages/patches/nvi-trailing-tab-segv.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/

26trailing_tab_segv.dpatch by <hesso@pool.math.tu-berlin.de>


Prevent a segfault if a trailing tab is pushed to a new line by inserting
characters before it if 'set number' is in effect.

--- nvi-1.81.6+debian.orig/vi/vs_relative.c	2007-11-18 17:41:42.000000000 +0100
+++ nvi-1.81.6+debian/vi/vs_relative.c	2008-06-13 03:22:55.000000000 +0200
@@ -133,7 +133,7 @@
 	 * Initialize the pointer into the buffer and current offset.
 	 */
 	p = lp;
-	curoff = 0;
+	curoff = scno;
 
 	/* Macro to return the display length of any signal character. */
 #define	CHLEN(val) (ch = *(UCHAR_T *)p++) == '\t' &&			\

debug log:

solving 6769d17 ...
found 6769d17 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-trailing-tab-segv.patch b/gnu/packages/patches/nvi-trailing-tab-segv.patch
new file mode 100644
index 0000000..6769d17

1:18: space before tab in indent.
 	 * Initialize the pointer into the buffer and current offset.
1:19: space before tab in indent.
 	 */
1:20: space before tab in indent.
 	p = lp;
1:23: trailing whitespace.
 
1:24: space before tab in indent.
 	/* Macro to return the display length of any signal character. */
Checking patch gnu/packages/patches/nvi-trailing-tab-segv.patch...
Applied patch gnu/packages/patches/nvi-trailing-tab-segv.patch cleanly.
warning: 5 lines add whitespace errors.

index at:
100644 6769d17b85f8ef903f500c2ad2fbd3bba788b651	gnu/packages/patches/nvi-trailing-tab-segv.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).