230 Commits (0572555dab1d1e10b5f7351a005ec588cab41e25)

Author SHA1 Message Date
Liam Wachter 6f6bd4a189 dns: fix nameserver OOB read in IPv6-disabled fallback 2 months ago
RocketDev 4268281ab4 getifaddr: fix typo ssl to sll 3 months ago
Rich Felker 6915b34860 dns resolver: reorder sockaddr union to make initialization safe 1 year ago
Jakub Stasiak 947b4574fa inet_ntop: fix the IPv6 leading zero sequence compression 2 years ago
Alexey Izbyshev 5c653ccaa1 getnameinfo: fix calling __dns_parse with potentially too large rlen 3 years ago
Quentin Rameau 8c086e7674 remove arbitrary limit from dns result parsing 3 years ago
Rich Felker 83b858f83b fix rejection of dns responses with pointers past 512 byte offset 3 years ago
Rich Felker a4ecaf89a9 dns stub resolver: increase buffer size to handle chained CNAMEs 3 years ago
Alexey Kodanev 77327ed064 dns: check length field in tcp response message 3 years ago
Alexey Izbyshev b1dfb734a4 getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW 3 years ago
Alexey Izbyshev 595416b11d getservbyport_r: fix out-of-bounds buffer read 3 years ago
Alexey Izbyshev 1a708ece1a getifaddrs: fix UB via taking address of null pointer union dereference 3 years ago
Alexey Izbyshev c499c1084e accept4: don't fall back to accept if we got unknown flags 3 years ago
Alexey Izbyshev 523d9b965d fix potential read past end of buffer in getnameinfo host name lookup 3 years ago
Alexey Izbyshev d0b7f9768d dns: fix workaround for systems defaulting to ipv6-only sockets 3 years ago
Alexey Izbyshev bec42ef393 dns: handle early eof in tcp fallback 3 years ago
Alexey Izbyshev 9b132e5567 prevent CNAME/PTR parsing from reading data past the response end 3 years ago
Alexey Izbyshev 12590c8bbd fix out-of-bounds reads in __dns_parse 3 years ago
A. Wilcox 7d756e1c04 dns: prefer monotonic clock for timeouts 3 years ago
Alexey Izbyshev 7e13e5ae69 inet_pton: fix uninitialized memory use for IPv4-mapped IPv6 addresses 3 years ago
Colin Cross f79b973d92 increase sendmsg internal buffer to support SCM_MAX_FD 3 years ago
Rich Felker 8f9259450a fix return value of gethostby{name[2],addr} with no result but no error 4 years ago
Rich Felker 63402be229 clean up dns_parse_callback 4 years ago
Rich Felker 0a7b4323b0 dns response handling: don't treat too many addresses as an error 4 years ago
Rich Felker 41603c7706 dns response handling: ignore presence of wrong-type RRs 4 years ago
Rich Felker dec8f0a4fa dns query core: detect udp truncation at recv time 4 years ago
Rich Felker 8c408937da getaddrinfo dns lookup: use larger answer buffer to handle long CNAMEs 4 years ago
Rich Felker 51d4669fb9 dns: implement tcp fallback in __res_msend query core 4 years ago
Rich Felker e2e9517607 res_send: use a temp buffer if caller's buffer is under 512 bytes 4 years ago
Rich Felker c87d75f2aa adapt res_msend DNS query core for working with multiple sockets 4 years ago
Rich Felker 85050ac5a2 getaddrinfo: add EAI_NODATA error code to distinguish NODATA vs NxDomain 4 years ago
Rich Felker dc9285ad1d fix error cases in gethostbyaddr_r 4 years ago
Rich Felker f9827fc7da remove impossible error case from gethostbyname2_r 4 years ago
Rich Felker f081d5336a fix return value of gethostnbyname[2]_r on result not found 4 years ago
Rich Felker 1e7fb12f77 dns: treat names rejected by res_mkquery as nonexistent rather than error 4 years ago
Rich Felker 001c1afb0a res_mkquery: error out on consecutive final dots in name 4 years ago
Rich Felker a636fd630f dns: fail if ipv6 is disabled and resolv.conf has only v6 nameserves 4 years ago
Rich Felker d8fddb9641 fix fallback when ipv6 is disabled but resolv.conf has v6 nameserves 4 years ago
Rich Felker 7d568410b4 fix mishandling of errno in getaddrinfo AI_ADDRCONFIG logic 4 years ago
Rich Felker 6c858d6fd4 ensure distinct query id for parallel A and AAAA queries in resolver 4 years ago
Ondrej Jirman 8cf87b3027 fix incorrect parameter name in internal netlink.h RTA_OK macro 8 years ago
Rich Felker 262003ad9d fix missing newline in herror output 6 years ago
Rich Felker cf27184d00 restore h_errno ABI compatibility with ancient binaries 6 years ago
Rich Felker 19f8642494 report res_query failures, including nxdomain/nodata, via h_errno 6 years ago
Rich Felker 9d0b8b92a5 make h_errno thread-local 6 years ago
Rich Felker f1198ea3cf in hosts file lookups, honor first canonical name regardless of family 6 years ago
Rich Felker 20c6d83f55 in hosts file lookups, use only first match for canonical name 6 years ago
Rich Felker 1b4e84c56d fix return value of res_send, res_query on errors from nameserver 6 years ago
Rich Felker 5cf1ac2443 fix handling of errors resolving one of paired A+AAAA query 6 years ago
Rich Felker fd7ec068ef set AD bit in dns queries, suppress for internal use 6 years ago