gawk: fix kernel build (double free detected in tcache 2)

This commit is contained in:
Juergen Daubert 2022-09-06 08:59:49 +02:00
parent 1d78ce392f
commit f3337ab7ca
3 changed files with 27 additions and 4 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqms+fx8NuJR5ymmIEAbu/vrTrXCkvto0T8Rv0NQqIw2X0ahYkzUY3GGxnxPfpG8vHAu+W3MT636niQzzi0MmdAk=
SHA256 (Pkgfile) = 259e523039a54fc89f945f71351df2a49b4a295f3b0e4ebf0dd11b6792db0f86
RWRJc1FUaeVeqv2LhNHB3e1PA6IXnDVLIgj1uHxz7ME0z7j+QKNGZ0qUPwf0qIbhly0sopb7YCJTMbxmBPTNRUylbGUVpVqnUQ4=
SHA256 (Pkgfile) = 91c9b508acca241c7c2d5f9617d37ca442a38064fd8d94b7e7c3427cbcc22269
SHA256 (.footprint) = fa59e73e7b04e206a9ff9d8031d5312b86641788424eef9733d53ca8334d8a64
SHA256 (gawk-5.2.0.tar.xz) = e4ddbad1c2ef10e8e815ca80208d0162d4c983e6cca16f925e8418632d639018
SHA256 (add-upref.patch) = bb0d82033baaeb5e9d1b7c83620a23ebc8f4907e371145d32e32ead06a2dfbb4

View File

@ -5,12 +5,15 @@
name=gawk
version=5.2.0
release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
release=2
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
add-upref.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/add-upref.patch
export ac_cv_libsigsegv=no
./configure \

19
gawk/add-upref.patch Normal file
View File

@ -0,0 +1,19 @@
Fixes: d2e694ad66a379fa128137d19c10b77b942972f2
Fixes: https://bugs.gentoo.org/868567
Fixes: https://lists.gnu.org/archive/html/bug-gawk/2022-09/msg00006.html
---
interpret.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/interpret.h b/interpret.h
index 57d060e63f37..268655b2231f 100644
--- a/interpret.h
+++ b/interpret.h
@@ -238,6 +238,7 @@ uninitialized_scalar:
_("reference to uninitialized argument `%s'") :
_("reference to uninitialized variable `%s'"),
save_symbol->vname);
+ UPREF(m);
PUSH(m);
break;