unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob ae4667bc46233970f4c489f67916fb3fdafc79a5 463 bytes (raw)
name: gnu/packages/patches/ncrack-nullcheck.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
diff -ru ncrack-0.5/ncrack_resume.cc ncrack-0.5.new/ncrack_resume.cc
--- ncrack-0.5/ncrack_resume.cc	2016-04-10 18:56:02.000000000 +0200
+++ ncrack-0.5.new/ncrack_resume.cc	2017-04-13 17:53:09.369522756 +0200
@@ -527,7 +527,7 @@
 
       j = 0;
       buf[j++] = *q;
-      while (*q != '\0' && j < sizeof(buf)) {
+      while ((q != NULL) && (j < sizeof(buf))) {
         q++;
         if (q - filestr >= filelen)
           fatal("Corrupted file! Error 5\n");


debug log:

solving ae4667bc46 ...
found ae4667bc46 in https://yhetil.org/guix-patches/WSgbTIT-0EVw00x79M1C4IoJnu497WH90q_x9HrwP736-BdOVcs0KaKNx9tcSaZu3u7jA6G8tnr7tsS9eUcIwrh3_DziU2imKAVbzDkx0Xo=@protonmail.com/

applying [1/1] https://yhetil.org/guix-patches/WSgbTIT-0EVw00x79M1C4IoJnu497WH90q_x9HrwP736-BdOVcs0KaKNx9tcSaZu3u7jA6G8tnr7tsS9eUcIwrh3_DziU2imKAVbzDkx0Xo=@protonmail.com/
diff --git a/gnu/packages/patches/ncrack-nullcheck.patch b/gnu/packages/patches/ncrack-nullcheck.patch
new file mode 100644
index 0000000000..ae4667bc46

1:11: trailing whitespace.
 
Checking patch gnu/packages/patches/ncrack-nullcheck.patch...
1:19: new blank line at EOF.
+
Applied patch gnu/packages/patches/ncrack-nullcheck.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 ae4667bc46233970f4c489f67916fb3fdafc79a5	gnu/packages/patches/ncrack-nullcheck.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).