File:
[cvs.NetBSD.org] /
pkgsrc /
net /
libcares /
Makefile
Revision
1.40:
download - view:
text,
annotated -
select for diffs
Sat Dec 30 10:14:00 2023 UTC (11 months, 2 weeks ago) by
wiz
Branches:
MAIN
CVS tags:
HEAD
libcares: update to 1.24.0.
Version 1.24.0 (16 Dec 2023)
GitHub (16 Dec 2023)
- [Brad House brought this change]
ares_cancel() could trigger callback with wrong response code (#663)
When doing ares_gethostbyname() or ares_getaddrinfo() with AF_UNSPEC, if ares_cancel() was called after one address class was returned but before the other address class, it would return ARES_SUCCESS rather than ARES_ECANCELLED.
Test case has been added for this specific condition.
Fixes Bug: #662
Fix By: Brad House (@bradh352)
- [Brad House brought this change]
rand: allow fallback from OS (#661)
getrandom() can fail with ENOSYS if the libc supports the function but the kernel does not.
Fixes Bug: #660
Fix By: Brad House (@bradh352)
- [Brad House brought this change]
1.24.0 release prep (#657)
Brad House (11 Dec 2023)
- reference alternative to ares_getsock() in docs
- tag some functions as deprecated in docs
- Coverity: fix allocation size as reported in new code
- remove dead code: ares_iphlpapi.h
- remove dead code: bitncmp
GitHub (9 Dec 2023)
- [Brad House brought this change]
Use external GoogleTest instead of bundling it (#655)
GoogleTest should be unbundled. Google changed their guidance a few years back and modern versions of google test cannot build the bundling code file.
This PR also updates to use C++14 as is required by modern GoogleTest versions.
Fixes Bug: #506
Fix By: Brad House (@bradh352)
Brad House (8 Dec 2023)
- use IF_NAMESIZE instead of IFNAMSIZ to avoid warning
- remove redundant cast
- clang-format and fix one warning
GitHub (8 Dec 2023)
- [Brad House brought this change]
Clean up some Windows-only warnings (#654)
Windows was emitting some warnings due to datatype differences.
Fix By: Brad House (@bradh352)
- [Brad House brought this change]
Rewrite sortlist hand parser for memory safety and bugs (#653)
The parser for the sortlist has been rewritten to use the ares__buf_*() functions. This also resolves some known bugs in accepting invalid sortlist entries which should have caused parse failures.
Fixes Bug: #501
Fix By: Brad House (@bradh352)
Brad House (8 Dec 2023)
- enhance timeout test case to make sure it will re-use a previously downed server
- enhance timeout test case
- SonarCloud: make const
GitHub (7 Dec 2023)
- [Brad House brought this change]
increment failures on timeout (#651)
As of c-ares 1.22.0, server timeouts were erroneously not incrementing server failures meaning the server in use wouldn't rotate. There was apparently never a test case for this condition.
This PR fixes the bug and adds a test case to ensure it behaves properly.
Fixes Bug: #650
Fix By: Brad House (@bradh352)
- [Brad House brought this change]
Windows UBSAN tests (#649)
Fix UBSAN error, and enable UBSAN testing in AppVeyor.
Fixes Bug #648
Fix By: Gisle Vanem (@gvanem)
- [Brad House brought this change]
Support ipv6 link-local servers and %iface syntax (#646)
Some environments may send router advertisements on a link setting their link-local (fe80::/10) address as a valid DNS server to the remote system. This will cause a DNS entry to be created like `fe80::1%iface`, since all link-local network interfaces are technically part of the same /10 subnet, it must be told what interface to send packets through explicitly if there are multiple physical interfaces.
This PR adds support for the %iface modifier when setting DNS servers via `/etc/resolv.conf` as well as via `ares_set_servers_csv()`.
For MacOS and iOS it is assumed that libresolve will set the `sin6_scope_id` and should be supported, but my test systems don't seem to read the Router Advertisement for RDNSS link-local. Specifying the link-local dns server on MacOS via adig has been tested and confirmed working.
For Windows, this is similar to MacOS in that the system doesn't seem to honor the RDNSS RA, but specifying manually has been tested to work.
At this point, Android support does not exist.
Fixes Bug #462
Supersedes PR #463
Fix By: Brad House (@bradh352) and Serhii Purik (@sergvpurik)
Brad House (4 Dec 2023)
- silence openwatcom warning due to qcache_max_ttl being unsigned
- ares__round_up_pow2() work around bogus warning
On 32bit systems, a codeblock that would intentionally never
be executed was emitting a warning. Rework the code to
prevent the warning. More code, no behavior difference, but
keeps people from complaining about the warning...
Fixes Bug: #645
Fix By: Brad House (@bradh352)
- try to move AC_USE_SYSTEM_EXTENSIONS
- Enable system extensions
Certain defines are needed on some systems to enable functionality like
pthread recursive mutexes.
Fixes #644
Fix By: Brad House (@bradh352)
- ares_init_options() with invalid options values should unset the option
Apparently nodejs is relying on the above behavior for legacy reasons. Add
sanity checks to the various optmask parameters where it makes sense.
See https://github.com/nodejs/node/pull/50800
Fix By: Brad House (@bradh352)
- SonarCloud: silence bogus reported error
- clang-format
GitHub (2 Dec 2023)
- [Brad House brought this change]
Nameserver parsing: replace another hand-written parser (#643)
This replaces the nameserver parsing code with code that use ares__buf_*() in the name of memory safety.
Fix By: Brad House (@bradh352)