diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-30 23:49:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-30 23:49:25 +0000 |
commit | fdc0e69ff470f51130dba7c7a539210ceedf9e6d (patch) | |
tree | c17533ac33965d5b150997aa149cb1c35ad777d6 /sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch | |
parent | 28d8acbb30a9ebda81447e5e3f5210a438ba7d24 (diff) |
gentoo auto-resync : 30:01:2024 - 23:49:25
Diffstat (limited to 'sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch')
-rw-r--r-- | sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch b/sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch new file mode 100644 index 000000000000..293919a006fe --- /dev/null +++ b/sys-apps/coreutils/files/coreutils-9.4-CVE-2024-0684.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/922474 +https://www.openwall.com/lists/oss-security/2024/01/18/2 +https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=c4c5ed8f4e9cd55a12966d4f520e3a13101637d9 + +From c4c5ed8f4e9cd55a12966d4f520e3a13101637d9 Mon Sep 17 00:00:00 2001 +From: Paul Eggert <eggert@cs.ucla.edu> +Date: Tue, 16 Jan 2024 13:48:32 -0800 +Subject: split: do not shrink hold buffer +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* src/split.c (line_bytes_split): Do not shrink hold buffer. +If it’s large for this batch it’s likely to be large for the next +batch, and for ‘split’ it’s not worth the complexity/CPU hassle to +shrink it. Do not assume hold_size can be bufsize. +--- a/src/split.c ++++ b/src/split.c +@@ -809,10 +809,7 @@ line_bytes_split (intmax_t n_bytes, char *buf, idx_t bufsize) + { + cwrite (n_out == 0, hold, n_hold); + n_out += n_hold; +- if (n_hold > bufsize) +- hold = xirealloc (hold, bufsize); + n_hold = 0; +- hold_size = bufsize; + } + + /* Output to eol if present. */ +-- +cgit v1.1 |