[PATCH] Initialize pad outside the conditional to prevent uninitialized data warnings.

Patsy Franklin pfrankli@redhat.com
Mon Jun 25 14:19:00 GMT 2018


Notes:

In sem_open.c,  pad was only initialized when __HAVE_64B_ATOMICS was
not true causing valgrind to warn about uninitialized data on some
arches.  This patch moves the initialization of pad outside of the
conditional.

Prior to this change, valgrind warned about unitialized bytes on
ppc64, ppc64le, s390x, and aarch64.

Tested on ppc64le with no regressions.   Used valgrind to confirm that
the uninitialized bytes warning was fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sem_open.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180625/77de923c/attachment.bin>


More information about the Libc-alpha mailing list