summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch')
-rw-r--r--meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch b/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch
deleted file mode 100644
index 0c68e2dce0..0000000000
--- a/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From c4c5ed8f4e9cd55a12966d4f520e3a13101637d9 Mon Sep 17 00:00:00 2001
2From: Paul Eggert <eggert@cs.ucla.edu>
3Date: Tue, 16 Jan 2024 13:48:32 -0800
4Subject: [PATCH 1/1] split: do not shrink hold buffer
5MIME-Version: 1.0
6Content-Type: text/plain; charset=utf8
7Content-Transfer-Encoding: 8bit
8
9* src/split.c (line_bytes_split): Do not shrink hold buffer.
10If it’s large for this batch it’s likely to be large for the next
11batch, and for ‘split’ it’s not worth the complexity/CPU hassle to
12shrink it. Do not assume hold_size can be bufsize.
13
14CVE: CVE-2024-0684
15Upstream-Status: Backport [https://github.com/coreutils/coreutils/commit/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9]
16Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
17---
18 src/split.c | 3 ---
19 1 file changed, 3 deletions(-)
20
21diff --git a/src/split.c b/src/split.c
22index 64020c859..037960a59 100644
23--- a/src/split.c
24+++ b/src/split.c
25@@ -809,10 +809,7 @@ line_bytes_split (intmax_t n_bytes, char *buf, idx_t bufsize)
26 {
27 cwrite (n_out == 0, hold, n_hold);
28 n_out += n_hold;
29- if (n_hold > bufsize)
30- hold = xirealloc (hold, bufsize);
31 n_hold = 0;
32- hold_size = bufsize;
33 }
34
35 /* Output to eol if present. */
36--
372.11.4.GIT
38
39