summaryrefslogtreecommitdiff
path: root/lz4/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'lz4/Pkgfile')
-rw-r--r--lz4/Pkgfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lz4/Pkgfile b/lz4/Pkgfile
index f4544d481..bd2964e34 100644
--- a/lz4/Pkgfile
+++ b/lz4/Pkgfile
@@ -4,12 +4,16 @@
name=lz4
version=1.9.3
-release=1
-source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz)
+release=2
+source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz
+ lz4-1.9.3-negative-memmove.patch)
build() {
cd $name-$version
+ # https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7
+ # Fix potential memory corruption with negative memmove() size
+ patch -p1 -i $SRC/lz4-1.9.3-negative-memmove.patch
make -C lib PREFIX=/usr
make -C programs PREFIX=/usr lz4 lz4c
make install PREFIX=/usr DESTDIR=$PKG

Generated by cgit