mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-27 12:31:03 +00:00
baeb7430e26f9e1c0f08b763809305f1c54763f6
If whine_realloc() fails in poll_listen(), arrsize has already been doubled while pollfds keeps its old size. The next call then sees arrsize != nfds, skips the extension and writes past the end of the array (or through NULL if the very first allocation failed). poll_reset() only clears nfds, so this sticks around until restart. Only update arrsize once the reallocation has succeeded. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%