History log of /external/valgrind/memcheck/tests/undef_malloc_args.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06bc722457ffe12e056d2f40d0d2f5c8711b541f 02-Oct-2013 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Silence clang warnings about uninitialised and unused values in
memcheck testcases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13599 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/memcheck/tests/undef_malloc_args.c
b3a23c6054e6918688a2beaba1a6a5e0954714e7 05-Apr-2013 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> temporarily disable memalign part of the undef_malloc_args.c test
as this is breaking Darwin.

A better fix should follow



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13362 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/memcheck/tests/undef_malloc_args.c
cf9e1973453f3bcc4cea9e5e943f10101bc3740b 04-Apr-2013 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> Solve false negative for various malloc replaced functions arguments

The replacement functions are running on the simulated CPU.
The code on the simulated CPU does not necessarily use
all arguments. E.g. args can be ignored and/or only given
to a NON SIMD call.
The definedness of such 'unused' arguments will not be verified
by memcheck.
A call to 'trigger_memcheck_error_if_undefined' allows
memcheck to detect such errors for the otherwise unused args.
Apart of allowing memcheck to detect an error, the function
trigger_memcheck_error_if_undefined has no effect and
has a minimal cost for other tools replacing malloc functions.

(suggestion of the 'no operation check' from Julian).

tested on f12/x86, debian6/amd64, f18/ppc64
Note that some Darwin specific code has been modified
in coregrind/m_replace_malloc/vg_replace_malloc.c.
(Some of) this code has not been compiled (no access to a
Darwin system). The code changed is trivial, so there is
some chance it will compile and even maybe work.

Added a new test verifying that various malloc related
functions undefined args are triggering an error in memcheck.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13361 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/memcheck/tests/undef_malloc_args.c