From a7806a6095eaccfe91f6c888df5b7788cfca2a2d Mon Sep 17 00:00:00 2001 From: Rmys Date: Thu, 30 Sep 2021 17:31:53 +0300 Subject: [PATCH] lz4-1.9.3 --- system/base/lz4/files/8301a21.patch | 22 ++++++++++++++++++++++ system/base/lz4/pspec.xml | 12 +++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 system/base/lz4/files/8301a21.patch diff --git a/system/base/lz4/files/8301a21.patch b/system/base/lz4/files/8301a21.patch new file mode 100644 index 00000000..053958df --- /dev/null +++ b/system/base/lz4/files/8301a21.patch @@ -0,0 +1,22 @@ +From 8301a21773ef61656225e264f4f06ae14462bca7 Mon Sep 17 00:00:00 2001 +From: Jasper Lievisse Adriaanse +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; diff --git a/system/base/lz4/pspec.xml b/system/base/lz4/pspec.xml index 03da1f17..0245849b 100644 --- a/system/base/lz4/pspec.xml +++ b/system/base/lz4/pspec.xml @@ -12,12 +12,15 @@ library Extremely fast compression algorithm LZ4 is an extremely fast loss-less compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-core CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. - https://github.com/lz4/lz4/archive/v1.9.2.tar.gz + https://github.com/lz4/lz4/archive/v1.9.3.tar.gz make glibc-devel diffutils + + 8301a21.patch + @@ -45,6 +48,13 @@ + + 2021-09-28 + 1.9.3 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2020-12-09 1.9.2