And the C libraries all implement those functions (mostly) differently. The "lighter weight" standard libraries tend to have simpler implementations of these functions, which may be easier to audit for these kinds of bugs.
For example:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/pos...
compare with
http://git.musl-libc.org/cgit/musl/tree/src/network/getaddri...