about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-04-08 13:43:00 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-04-08 13:43:00 +0900
commitbb91c0468597713faf49ee8f06ab460935190c9e (patch)
treeb0220cb335f976c561ec4779837e80e66cb87dfb
parent8e0cbcdbacd9e1469f6c51d9180664529a268516 (diff)
downloadloftix-bb91c0468597713faf49ee8f06ab460935190c9e.tar.gz
Add coreutils bug 25003
-rw-r--r--REUSE.toml3
-rw-r--r--bugs/README.md6
-rw-r--r--bugs/gnu/25003/chunks1
-rw-r--r--loftix/bugs.scm17
4 files changed, 26 insertions, 1 deletions
diff --git a/REUSE.toml b/REUSE.toml
index e689574..74cfa26 100644
--- a/REUSE.toml
+++ b/REUSE.toml
@@ -137,7 +137,8 @@ SPDX-FileCopyrightText = 'Yury Usishchev'
 SPDX-License-Identifier = 'CC0-1.0'
 
 [[annotations]]
-path = 'bugs/gnu/26545/size'
+path = [ 'bugs/gnu/25003/chunks',
+         'bugs/gnu/26545/size' ]
 SPDX-FileCopyrightText = 'Pádraig Brady'
 SPDX-License-Identifier = 'CC0-1.0'
 
diff --git a/bugs/README.md b/bugs/README.md
index 503f433..3de0a45 100644
--- a/bugs/README.md
+++ b/bugs/README.md
@@ -41,6 +41,11 @@
       guix shell -e '(@@ (loftix bugs) coreutils-8.23-asan)'
       make-prime-list "$(cat gnu/19784/limit)"
 
+- #25003: [negative size param](gnu-25003)
+
+      guix shell -e '(@@ (loftix bugs) coreutils-8.26-sans-4954f79-asan)'
+      split -n"$(cat gnu/25003/chunks)" /dev/null
+
 - #25023: [global buffer overflow](gnu-25023)
 
       guix shell -e '(@@ (loftix bugs) coreutils-8.25-asan)'
@@ -259,6 +264,7 @@
 [chromium-42452152]: https://project-zero.issues.chromium.org/issues/42452152
 [chromium-42452154]: https://project-zero.issues.chromium.org/issues/42452154
 [gnu-19784]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19784
+[gnu-25003]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25003
 [gnu-25023]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25023
 [gnu-26545]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26545
 [jasper-22]: https://github.com/jasper-software/jasper/issues/22
diff --git a/bugs/gnu/25003/chunks b/bugs/gnu/25003/chunks
new file mode 100644
index 0000000..ffe913b
--- /dev/null
+++ b/bugs/gnu/25003/chunks
@@ -0,0 +1 @@
+2/3
\ No newline at end of file
diff --git a/loftix/bugs.scm b/loftix/bugs.scm
index 0b6b306..c9466e7 100644
--- a/loftix/bugs.scm
+++ b/loftix/bugs.scm
@@ -122,6 +122,23 @@
         ((#:tests? _ #f)
          #f)))))
 
+(define-public coreutils-8.26-sans-4954f79-asan
+  (package
+    (inherit coreutils-8.27-asan)
+    (version "8.26")
+    (source (origin
+              (inherit (package-source coreutils-8.27-asan))
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/coreutils/coreutils-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "13lspazc7xkviy93qz7ks9jv4sldvgmwpq36ghrbrqpq93br8phm"))
+              (patches (cons (search-patch
+                              "patches/bugs/coreutils-unfix-bug-25003.patch")
+                             (origin-patches
+                              (package-source coreutils-8.27-asan))))))))
+
 (define-public coreutils-8.25-asan
   (package
     (inherit coreutils-8.27-asan)