mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
55ecde7f1b70d5c05dc5a39cf08098426f466bbc
Use strlen to determine the length of the filename returned by inotify, as in->len refers to the length of the buffer containing the name, not the length of the name itself. http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2018q1/011950.html Signed-off-by: Andy Hawkins <andy@gently.org.uk> Patch further modified by simon@thekelleys.org to avoid out-of-bounds array access with an empty string, call strlen once, and reverse order of filename verifcation and resolv-file test.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%