about summary refs log tree commit diff
path: root/sys/gmon.h
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-11-08 01:53:48 +0000
committerJoseph Myers <josmyers@redhat.com>2024-11-08 01:53:48 +0000
commitf745d78e2628cd5b13ca119ae0c0e21d08ad1906 (patch)
treedb7acd76c9167b073ccab858010bc3dc9aa7f30f /sys/gmon.h
parent97f60abd25628425971f07e9b0e7f8eec0741235 (diff)
downloadglibc-master.tar.gz
glibc-master.tar.xz
glibc-master.zip
Avoid uninitialized result in sem_open when file does not exist HEAD master
A static analyzer apparently reported an uninitialized use of the
variable result in sem_open in the case where the file is required to
exist but does not exist.

The report appears to be correct; set result to SEM_FAILED in that
case, and add a test for it.

Note: the test passes for me even without the sem_open fix, I guess
because result happens to get value SEM_FAILED (i.e. 0) when
uninitialized.

Tested for x86_64.
Diffstat (limited to 'sys/gmon.h')
0 files changed, 0 insertions, 0 deletions