wahern / dns

dns.c: Single file non-blocking DNS C library without callbacks or external dependencies.
http://25thandclement.com/~william/projects/dns.c.html
MIT License
256 stars 64 forks source link

Work around for GCC 8.3.1 memset bug #38

Open cmjthomas opened 3 years ago

cmjthomas commented 3 years ago

memset returns an incorrect address when compiled under gcc 8.3.1 with optimizations. ref https://bugzilla.redhat.com/show_bug.cgi?id=1958715 This work-around doesn't rely upon the returned value