]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Explicitly make testcase variable for sys-copy_file_range undefined.
authorMark Wielaard <mark@klomp.org>
Wed, 15 May 2019 19:30:00 +0000 (21:30 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 15 May 2019 19:30:09 +0000 (21:30 +0200)
commitc212b72a63e43be323a4e028bbdbe8b023c22be8
treeb065b0df18d483982568bc98925af086a21ee3d5
parentbf33835707c6f83ada1881afb6094e6b644bbcb4
Explicitly make testcase variable for sys-copy_file_range undefined.

On some systems an extra warning could occur when a variable in
the memcheck/tests/linux/sys-copy_file_range testcase was undefined,
but (accidentially) pointed to known bad memory. Fix by defining the
variable as 0, but then marking it explicitly undefined using memcheck
VALGRIND_MAKE_MEM_UNDEFINED.

Followup for https://bugs.kde.org/show_bug.cgi?id=407218
memcheck/tests/linux/sys-copy_file_range.c