summaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2023-02-27 23:05:16 +0300
committerRich Felker <dalias@aerifal.cx>2023-02-28 11:59:53 -0500
commit1a708ece1ad8b924466e81c5fcdf4e22311fd770 (patch)
tree55419af5ea43de87affd4f0001fe49b92b600eb7 /include/time.h
parentc499c1084eaccd83e4b6e60883a5d92df0202c5e (diff)
downloadmusl-1a708ece1ad8b924466e81c5fcdf4e22311fd770.tar.gz
getifaddrs: fix UB via taking address of null pointer union dereference
getifaddrs computes &ctx->first->ifa even if ctx->first is NULL. While this shouldn't be possible on the success path because the loopback interface is hardcoded into the kernel, this is still possible on the error path (for example, if __rtnetlink_enumerate couldn't create a socket due to exceeding the fd limit).
Diffstat (limited to 'include/time.h')
0 files changed, 0 insertions, 0 deletions