f10a42f662
0001-Prepare-NEWS-for-branch-3.23-fixes.patch 0002-486180-MIPS-VexGuestArchState-has-no-member-named-gu.patch 0003-Bug-486293-memccpy-false-positives.patch 0004-Bug-486569-linux-inotify_init-syscall-wrapper-missin.patch 0005-aarch64-frinta-and-frinta-vector-instructions.patch 0006-mips-skip-using-shared-syscall-numbers-for-mips32.patch 0007-Fix-uninitialized-err-in-handle_extension.patch 0008-Avoid-use-of-guest_IP_AT_SYSCALL-in-handle_extension.patch 0009-s390x-Minor-fixes-in-extension-s390x.c.patch 0010-Bug-453044-gbserver_tests-failures-in-aarch64.patch 0011-Linux-regtest-reallocarray-needs-malloc.h.patch 0012-Bug-487439-SIGILL-in-JDK11-JDK17.patch 0013-Don-t-leave-fds-created-with-log-file-xml-file-or-lo.patch 0014-Close-both-internal-pipe-fds-after-VG_-fork-in-paren.patch 0015-Don-t-allow-programs-calling-fnctl-on-valgrind-s-own.patch 0016-mips-skip-using-shared-syscall-numbers-for-mips64.patch 0017-gdbserver_tests-filters-remove-python-rpm-module-loa.patch 0018-Implement-VMOVQ-xmm1-xmm2-m64.patch 0019-arm64-Fix-fcvtas-instruction.patch 0020-gdbserver_tests-filters-remove-more-verbose-python-r.patch 0021-Avoid-dev-inode-check-on-btrfs-with-sanity-level-3.patch Resolves: #RHEL-46589 Add valgrind 3.23 stable branch fixes (rhel9.5)
57 lines
2.1 KiB
Diff
57 lines
2.1 KiB
Diff
From 1c2cdfd790b3e26f47e709770bdefd456d83a7cb Mon Sep 17 00:00:00 2001
|
|
From: Paul Floyd <pjfloyd@wanadoo.fr>
|
|
Date: Tue, 4 Jun 2024 12:49:33 +0200
|
|
Subject: [PATCH 11/11] Linux regtest: reallocarray needs malloc.h
|
|
|
|
Seen on Rocky 8.9
|
|
|
|
(cherry picked from commit a015ad2e0db40076b4841220c7ab6d6853798936)
|
|
---
|
|
memcheck/tests/amd64-linux/reallocarray.c | 1 +
|
|
memcheck/tests/amd64-linux/reallocarray.stderr.exp | 8 ++++----
|
|
2 files changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/memcheck/tests/amd64-linux/reallocarray.c b/memcheck/tests/amd64-linux/reallocarray.c
|
|
index 8765ca4997cb..ce63b80100da 100644
|
|
--- a/memcheck/tests/amd64-linux/reallocarray.c
|
|
+++ b/memcheck/tests/amd64-linux/reallocarray.c
|
|
@@ -2,6 +2,7 @@
|
|
#include <assert.h>
|
|
#include <errno.h>
|
|
#include <stdint.h>
|
|
+#include <malloc.h>
|
|
#include "../../memcheck.h"
|
|
|
|
int main(void)
|
|
diff --git a/memcheck/tests/amd64-linux/reallocarray.stderr.exp b/memcheck/tests/amd64-linux/reallocarray.stderr.exp
|
|
index a1c8439cc9ef..20a1c4e8b4f9 100644
|
|
--- a/memcheck/tests/amd64-linux/reallocarray.stderr.exp
|
|
+++ b/memcheck/tests/amd64-linux/reallocarray.stderr.exp
|
|
@@ -12,19 +12,19 @@ To see them, rerun with: --leak-check=full --show-leak-kinds=all
|
|
|
|
realloc() with size 0
|
|
at 0x........: reallocarray (vg_replace_malloc.c:...)
|
|
- by 0x........: main (reallocarray.c:13)
|
|
+ by 0x........: main (reallocarray.c:14)
|
|
Address 0x........ is 0 bytes inside a block of size 40 alloc'd
|
|
at 0x........: reallocarray (vg_replace_malloc.c:...)
|
|
- by 0x........: main (reallocarray.c:11)
|
|
+ by 0x........: main (reallocarray.c:12)
|
|
|
|
All heap blocks were freed -- no leaks are possible
|
|
|
|
realloc() with size 0
|
|
at 0x........: reallocarray (vg_replace_malloc.c:...)
|
|
- by 0x........: main (reallocarray.c:16)
|
|
+ by 0x........: main (reallocarray.c:17)
|
|
Address 0x........ is 0 bytes inside a block of size 10 alloc'd
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
- by 0x........: main (reallocarray.c:15)
|
|
+ by 0x........: main (reallocarray.c:16)
|
|
|
|
All heap blocks were freed -- no leaks are possible
|
|
|
|
--
|
|
2.45.2
|
|
|