summaryrefslogtreecommitdiff
path: root/user/valgrind/realloc.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-08-23 14:56:23 -0500
committerZach van Rijn <me@zv.io>2023-08-23 14:56:23 -0500
commitd9cb2749153211fca6557c7ee3fff65ec2009921 (patch)
tree980c40da41bb7f7ba3fc155a030aa0318f6efa20 /user/valgrind/realloc.patch
parentdab0c53b3336818bc933dbace50d90fe425f43d7 (diff)
downloadpackages-d9cb2749153211fca6557c7ee3fff65ec2009921.tar.gz
packages-d9cb2749153211fca6557c7ee3fff65ec2009921.tar.bz2
packages-d9cb2749153211fca6557c7ee3fff65ec2009921.tar.xz
packages-d9cb2749153211fca6557c7ee3fff65ec2009921.zip
user/valgrind: bump { 3.19.0 --> 3.21.0 }.
Diffstat (limited to 'user/valgrind/realloc.patch')
-rw-r--r--user/valgrind/realloc.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/user/valgrind/realloc.patch b/user/valgrind/realloc.patch
deleted file mode 100644
index d0eb795b8..000000000
--- a/user/valgrind/realloc.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c
-+++ valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c
-@@ -765,13 +765,15 @@ static void init(void);
- DO_INIT; \
- MALLOC_TRACE("realloc(%p,%llu)", ptrV, (ULong)new_size ); \
- \
-- if (ptrV == NULL) \
-- /* We need to call a malloc-like function; so let's use \
-- one which we know exists. */ \
-- return VG_REPLACE_FUNCTION_EZU(10010,VG_Z_LIBC_SONAME,malloc) \
-- (new_size); \
-+ if (ptrV == NULL) { \
-+ TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED(new_size); \
-+ v = (void*)VALGRIND_NON_SIMD_CALL1( info.tl_malloc, new_size ); \
-+ MALLOC_TRACE(" = %p\n", v ); \
-+ return v; \
-+ } \
- if (new_size <= 0) { \
-- VG_REPLACE_FUNCTION_EZU(10050,VG_Z_LIBC_SONAME,free)(ptrV); \
-+ if (ptrV != NULL) \
-+ VALGRIND_NON_SIMD_CALL1( info.tl_free, ptrV ); \
- MALLOC_TRACE(" = 0\n"); \
- return NULL; \
- } \