diff options
author | Alexey Izbyshev <izbyshev@ispras.ru> | 2023-02-27 23:05:16 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-02-28 11:59:53 -0500 |
commit | 1a708ece1ad8b924466e81c5fcdf4e22311fd770 (patch) | |
tree | 55419af5ea43de87affd4f0001fe49b92b600eb7 /src/network/getservbyport_r.c | |
parent | c499c1084eaccd83e4b6e60883a5d92df0202c5e (diff) | |
download | musl-1a708ece1ad8b924466e81c5fcdf4e22311fd770.tar.gz musl-1a708ece1ad8b924466e81c5fcdf4e22311fd770.tar.bz2 musl-1a708ece1ad8b924466e81c5fcdf4e22311fd770.tar.xz musl-1a708ece1ad8b924466e81c5fcdf4e22311fd770.zip |
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 'src/network/getservbyport_r.c')
0 files changed, 0 insertions, 0 deletions