summaryrefslogtreecommitdiff
path: root/system/lz4/CVE-2021-3520.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-03-31 03:42:30 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-04-01 21:20:04 -0500
commite920ba77694c56bf4bf23c9c6c8227a4e1b241e1 (patch)
tree778e71ac4af99eddc937c26c0be491ea9ecbb288 /system/lz4/CVE-2021-3520.patch
parent8e733f3b3806123948f21db5290338345203f681 (diff)
downloadpackages-e920ba77694c56bf4bf23c9c6c8227a4e1b241e1.tar.gz
packages-e920ba77694c56bf4bf23c9c6c8227a4e1b241e1.tar.bz2
packages-e920ba77694c56bf4bf23c9c6c8227a4e1b241e1.tar.xz
packages-e920ba77694c56bf4bf23c9c6c8227a4e1b241e1.zip
system/lz4: Update to 1.9.4
Multi-job `make check` is now explicitly supported upstream, so we can remove -j1.
Diffstat (limited to 'system/lz4/CVE-2021-3520.patch')
-rw-r--r--system/lz4/CVE-2021-3520.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/system/lz4/CVE-2021-3520.patch b/system/lz4/CVE-2021-3520.patch
deleted file mode 100644
index 053958dfe..000000000
--- a/system/lz4/CVE-2021-3520.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 8301a21773ef61656225e264f4f06ae14462bca7 Mon Sep 17 00:00:00 2001
-From: Jasper Lievisse Adriaanse <j@jasper.la>
-Date: Fri, 26 Feb 2021 15:21:20 +0100
-Subject: [PATCH] Fix potential memory corruption with negative memmove() size
-
----
- lib/lz4.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/lz4.c b/lib/lz4.c
-index 5f524d01d..c2f504ef3 100644
---- a/lib/lz4.c
-+++ b/lib/lz4.c
-@@ -1749,7 +1749,7 @@ LZ4_decompress_generic(
- const size_t dictSize /* note : = 0 if noDict */
- )
- {
-- if (src == NULL) { return -1; }
-+ if ((src == NULL) || (outputSize < 0)) { return -1; }
-
- { const BYTE* ip = (const BYTE*) src;
- const BYTE* const iend = ip + srcSize;