DNSPod / dnspod-sr

A faster recursive dns server from DNSPod
Other
1.36k stars 328 forks source link

global buffer overflow #60

Open HypericumKaia opened 10 months ago

HypericumKaia commented 10 months ago

in https://github.com/DNSPod/dnspod-sr/blob/0dfbd37b11b4c54c6665914c8751f971dbdf229e/src/init.c#L186 if s->logpath is not set, https://github.com/DNSPod/dnspod-sr/blob/0dfbd37b11b4c54c6665914c8751f971dbdf229e/src/io.c#L461 will use memcpy with a null pointer and will cause

image