summaryrefslogtreecommitdiff
path: root/src/math/round.c
diff options
context:
space:
mode:
authorLiam Wachter <liam@asymmetric.re>2026-03-20 12:19:40 -0400
committerRich Felker <dalias@aerifal.cx>2026-03-20 12:19:40 -0400
commit6f6bd4a1896ba0be19168abc1346c8c7e3851709 (patch)
treed5283a4ebe8d44ddb95708ca11e4c9b689fa1ffe /src/math/round.c
parent9fa28ece75d8a2191de7c5bb53bed224c5947417 (diff)
downloadmusl-6f6bd4a1896ba0be19168abc1346c8c7e3851709.tar.gz
dns: fix nameserver OOB read in IPv6-disabled fallback
In __res_msend_rc(), the IPv6-disabled fallback check uses conf->ns[nns] inside a loop controlled by i, so it tests a fixed slot instead of walking configured nameservers. This reads one past the array's size. Use conf->ns[i] so the loop correctly detects whether all configured nameservers are IPv6-only.
Diffstat (limited to 'src/math/round.c')
0 files changed, 0 insertions, 0 deletions