#define DELETE_SIZED(soname, fnname, vg_replacement) \
\
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size); \
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size) \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size); \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size) \
{ \
DO_INIT; \
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)size); \
#define DELETE_ALIGNED(soname, fnname, vg_replacement) \
\
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t alignment); \
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t alignment) \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT alignment); \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT alignment) \
{ \
DO_INIT; \
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)alignment); \
#define DELETE_SIZED_ALIGNED(soname, fnname, vg_replacement) \
\
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size, size_t alignment); \
- void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size, size_t alignment) \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size, SizeT alignment); \
+ void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size, SizeT alignment) \
{ \
DO_INIT; \
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)size); \
-
Conditional jump or move depends on uninitialised value(s)
at 0x........: operator new(unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
by 0x........: main (in /usr/home/paulf/scratch/valgrind/memcheck/tests/sized_aligned_new_delete_args)
at 0x........: operator delete[](void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
by 0x........: main (in /usr/home/paulf/scratch/valgrind/memcheck/tests/sized_aligned_new_delete_args)
-
-HEAP SUMMARY:
- in use at exit: 0 bytes in 0 blocks
- total heap usage: 8 allocs, 8 frees, 128 bytes allocated
-
-For a detailed leak analysis, rerun with: --leak-check=full
-
-Use --track-origins=yes to see where uninitialised values come from
-For lists of detected and suppressed errors, rerun with: -s
-ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0)
-
Conditional jump or move depends on uninitialised value(s)
at 0x........: operator new(unsigned int, std::align_val_t) (vg_replace_malloc.c:...)
by 0x........: main (sized_aligned_new_delete_args.cpp:16)
at 0x........: operator delete[](void*, unsigned int, std::align_val_t) (vg_replace_malloc.c:...)
by 0x........: main (sized_aligned_new_delete_args.cpp:40)
-
-HEAP SUMMARY:
- in use at exit: 0 bytes in 0 blocks
- total heap usage: 8 allocs, 8 frees, 128 bytes allocated
-
-For a detailed leak analysis, rerun with: --leak-check=full
-
-Use --track-origins=yes to see where uninitialised values come from
-For lists of detected and suppressed errors, rerun with: -s
-ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0)