summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES2651
1 files changed, 1809 insertions, 842 deletions
diff --git a/CHANGES b/CHANGES
index 93e6a43..607545d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,1792 @@
Changelog for the c-ares project. Generated with git2changes.pl
+Version 1.17.1 (19 Nov 2020)
+
+GitHub (19 Nov 2020)
+- [Brad House brought this change]
+
+ Travis: add iOS target built with CMake (#378)
+
+ Issue #377 suggested that CMake builds for iOS with c-ares were broken. This PR adds an automatic Travis build for iOS CMake.
+
+ Fix By: Brad House (@bradh352)
+
+bradh352 (18 Nov 2020)
+- fix build
+
+GitHub (18 Nov 2020)
+- [Fabrice Fontaine brought this change]
+
+ External projects were using non-public header ares_dns.h, make public again (#376)
+
+ It appears some outside projects were relying on macros in ares_dns.h, even though it doesn't appear that header was ever meant to be public. That said, we don't want to break external integrators so we should distribute this header again.
+
+ Fix By: Fabrice Fontaine (@ffontaine)
+
+bradh352 (17 Nov 2020)
+- note that so versioning has moved to configure.ac
+
+- note about 1.17.1
+
+- fix sed gone wrong
+
+GitHub (17 Nov 2020)
+- [Daniel Stenberg brought this change]
+
+ autotools cleanup (#372)
+
+ * remove: install-sh mkinstalldirs
+
+ They're generated when needed, no need to store in it.
+
+ * buildconf: remove custom logic with autoreconf
+
+ Fix By: Daniel Stenberg (@bagder)
+
+bradh352 (17 Nov 2020)
+- attempt to fix 1.17.0 release distribution issues
+
+Version 1.17.0 (16 Nov 2020)
+
+bradh352 (16 Nov 2020)
+- 1.17.0 release prep
+
+- ares_getaddrinfo(): duplicate hints ai_socktype and ai_protocol into output
+
+ ai_socktype and ai_protocol were ignored from the hints input. They are now
+ duplicated into the output as expected. Currently no sanity checks on
+ proper values are taking place.
+
+ Fixes: #317
+ Fix By: Brad House (@bradh352)
+
+- ares_parse_{a,aaaa}_reply could return larger *naddrttls than passed in
+
+ If there are more ttls returned than the maximum provided by the requestor, then
+ the *naddrttls response would be larger than the actual number of elements in
+ the addrttls array.
+
+ This bug could lead to invalid memory accesses in applications using c-ares.
+
+ This behavior appeared to break with PR #257
+
+ Fixes: #371
+ Reported By: Momtchil Momtchev (@mmomtchev)
+ Fix By: Brad House (@bradh352)
+
+GitHub (5 Nov 2020)
+- [Dustin Lundquist brought this change]
+
+ docs: ares_set_local_ip4() uses host byte order (#368)
+
+ Properly document brain-dead behavior of ares_set_local_ip4() using host byte order instead of expected network byte order.
+
+ Fix By: Dustin Lundquist <d.lundquist@tempered.io>
+
+- [Łukasz Marszał brought this change]
+
+ empty hquery->name could lead to invalid memory access (#367)
+
+ If hquery->name is empty (=="\0"), &hquery->name[strlen(hquery->name)-1] would point to "random" place in memory. This is causing some of my address sanitizer tests to fail.
+
+ Fix By: Łukasz Marszał (@lmarszal)
+
+bradh352 (28 Sep 2020)
+- Fix OSSFuzz reported issue in CAA reply parsing
+
+ OSS-Fuzz is reporting a use-of-uninitialized-value:
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26012
+
+ Reported By: David Drysdale (@daviddrysdale)
+
+GitHub (26 Sep 2020)
+- [David Hotham brought this change]
+
+ fuzz CAA parsing (#363)
+
+ Add fuzz support for CAA parsing
+
+ Fix By: David Hotham (@dimbleby)
+
+- [Daniela Sonnenschein brought this change]
+
+ Allow parsing of CAA Resource Record (#360)
+
+ CAA (Certification Authority Authorization) was introduced in RFC 6844.
+ This has been obsoleted by RFC 8659. This commit added the possibility
+ to query CAA resource records with adig and adds a parser for CAA
+ records, that can be used in conjunction with ares_query(3).
+
+ Closes Bug: #292
+ Fix By: Daniela Sonnenschein (@lxdicted)
+
+Daniel Stenberg (17 Sep 2020)
+- docs: remove the html and pdf make targets
+
+ They're rarely used in our daily work flow and mostly just add friction,
+
+ Closes #362
+
+bradh352 (14 Sep 2020)
+- ares_process needs to always include nameser.h as it has compat
+
+- Define T_OPT if system doesn't provide it
+
+GitHub (12 Sep 2020)
+- [Gisle Vanem brought this change]
+
+ Change the mailman links (#358)
+
+ Links when wrapping become misleading. Insert newline to prevent wrapping.
+
+ Fix By: Gisle Vanem (@gvanem)
+
+- [Gisle Vanem brought this change]
+
+ [adig] Update man-page for the '-x' option (#357)
+
+ Fix By: Gisle Vanem (@gvanem)
+
+- [Gisle Vanem brought this change]
+
+ [adig] add '-x' option. (#356)
+
+ Added a 'dig-style' '-x' option. Also support '-xx' for a
+ IPv6 bit-string PTR query.
+
+ Fix By: Gisle Vanem (@gvanem)
+
+bradh352 (12 Sep 2020)
+- fix indentation
+
+- ns_t_opt -> T_OPT
+
+GitHub (12 Sep 2020)
+- [Gisle Vanem brought this change]
+
+ Fixes for Watt-32 on djgpp + Windows (#355)
+
+ No longer any relation to libcurl since '<libcurl-root>/packages/DOS/common.dj' is dropped.
+ This Makefile.dj has been tested on Win-10 only (using the Windows hosted djgpp cross compiler).
+
+ Fix By: Gisle Vanem (@gvanem)
+
+- [Gisle Vanem brought this change]
+
+ Fixes for Watt-32 on Windows and MSDOS (#354)
+
+ Move the prototype to 'ares_private.h'.
+
+ Fix By: Gisle Vanem (@gvanem)
+
+bradh352 (11 Sep 2020)
+- update path for include
+
+- remove stale information
+
+- remove stale information
+
+Brad House (9 Sep 2020)
+- silence compiler warnings
+
+- Remove stale msvc files from makefile
+
+GitHub (9 Sep 2020)
+- [Brad House brought this change]
+
+ Reorganize source tree (#349)
+
+ Originally started by Daniel Stenberg (@bagder) with #123, this patch reorganizes the c-ares source tree to have a more modern layout. It also fixes out of tree builds for autotools, and automatically builds the tests if tests are enabled. All tests are passing which tests each of the supported build systems (autotools, cmake, nmake, mingw gmake). There may be some edge cases that will have to be caught later on for things I'm not aware of.
+
+ Fix By: Brad House (@bradh352)
+
+Brad House (1 Sep 2020)
+- remove CURLDEBUG as per #82
+
+GitHub (1 Sep 2020)
+- [Erik Lax brought this change]
+
+ Detect remote DNS server does not support EDNS as per RFC 6891 (#244)
+
+ EDNS retry should be based on FORMERR returned without an OPT RR record as per https://tools.ietf.org/html/rfc6891#section-7 rather than just treating any unexpected error condition as a reason to disable EDNS on the channel.
+
+ Fix By: Erik Lax (@eriklax)
+
+Brad House (27 Aug 2020)
+- Fix for #345, don't use 'true' use 1
+
+GitHub (27 Aug 2020)
+- [Seraphime Kirkovski brought this change]
+
+ ares_gethostbyname: Fix AF_UNSPEC support when using an ip address (#204)
+
+ fake_hostent() was not supporting AF_UNSPEC, so when an ip address was specified when using AF_UNSPEC it would attempt to do a DNS lookup rather than returning a fake hostent using the ip address.
+
+ Fix By: Seraphime Kirkovski (@Seraphime)
+
+- [apenn-msft brought this change]
+
+ Tests should use dynamic system-assigned ports rather than static port (#346)
+
+ The c-ares test suite was hardcoded to use port 5300 (and possibly 5301, 5302) for the test suite. Especially in containers, there may be no guarantee these ports are available and cause tests to fail when they could otherwise succeed. Instead, request the system to assign a port to use dynamically. This is now the default. To override, the test suite still takes the "-p <port>" option as it always has and will honor that.
+
+ Fix By: Anthony Penniston (@apenn-msft)
+
+Brad House (25 Aug 2020)
+- Unset members of the addr struct contain garbage values (#343)
+
+ When generating the ares_sockaddr data by getaddrinfo() it was only filling
+ in certain members while leaving others uninitialized. This left garbage
+ data if a user tried to use the unset values. memset() the ares_sockaddr
+ to 0 prior to filling in the values to prevent this.
+
+ Reported By: @SmorkalovG
+ Fix By: Brad House (@bradh352)
+
+GitHub (24 Aug 2020)
+- [Jonathan Maye-Hobbs brought this change]
+
+ FQDN with trailing period should be queried first with larger ndot value (#345)
+
+ If a query is performed for dynamodb.us-east-1.amazonaws.com. with ndots=5, it was attempting to search the search domains rather than just attempting the FQDN that was passed it. This patch now at least attempts the FQDN first.
+
+ We may need to determine if we should abort any further searching, however as is probably intended.
+
+ Fix by: Jonathan Maye-Hobbs (@wheelpharoah)
+
+- [Gisle Vanem brought this change]
+
+ Update acountry.c country code list (#341)
+
+ Updated country_list[]:
+ * 2-letter ISO-3166 country-codes.
+ * Add, rename some names + codes in accordance with latest table at https://en.wikipedia.org/wiki/ISO_3166-1.
+
+ Fix By: Gisle Vanem (@gvanem)
+
+- [Bulat Gaifullin brought this change]
+
+ Test case should honor flag HAVE_WRITEV rather than WIN32 (#344)
+
+ Test cases where not honoring the HAVE_WRITEV flag but instead using WIN32 to determine if WRITEV was available or not. This patch fixes that.
+
+ Fix By: Bulat Gaifullin (@bgaifullin)
+
+Brad House (18 Jul 2020)
+- Ensure c89 support
+
+ A couple of for loops in Mac-specific code were using integer declarations
+ inside a for loop. Move the declaration to the top of the preceding
+ code block to retain c89 compliance.
+
+ Reported By: Jeffrey Walton
+
+GitHub (2 Jul 2020)
+- [Fionn Fitzmaurice brought this change]
+
+ Avoid buffer overflow in RC4 loop comparison (#336)
+
+ The rc4 function iterates over a buffer of size buffer_len who's maximum
+ value is INT_MAX with a counter of type short that is not guaranteed to
+ have maximum size INT_MAX.
+
+ In circumstances where short is narrower than int and where buffer_len
+ is larger than the maximum value of a short, it may be possible to loop
+ infinitely as counter will overflow and never be greater than or equal
+ to buffer_len.
+
+ The solution is to make the comparison be between types of equal width.
+ This commit defines counter as an int.
+
+ Fix By: Fionn Fitzmaurice (@fionn)
+
+- [anonymoushelpishere brought this change]
+
+ Updated help information for adig, acountry, and ahost. (#334)
+
+ Provide more descriptive help information for various utilities.
+
+ Fix By: @anonymoushelpishere
+
+- [lutianxiong brought this change]
+
+ avoid read-heap-buffer-overflow (#332)
+
+ Fix invalid read in ares_parse_soa_reply.c found during fuzzing
+
+ Fixes Bug: #333
+ Fix By: lutianxiong (@ltx2018)
+
+- [Ivan Baidakou brought this change]
+
+ Fix: sizeof(sizeof(addr.saX)) -> sizeof(addr.saX) in readaddrinfo (#331)
+
+ Looks like a sed-gone-wrong, a sizeof inside of a sizeof.
+
+ Fix By: Ivan Baidakou (@basiliscos)
+
+Version 1.16.1 (11 May 2020)
+
+Brad House (11 May 2020)
+- c-ares 1.16.1 release prep
+
+- update travis to use xcode11.4
+
+- Prevent possible double-free in ares_getaddrinfo() if ares_destroy() is called
+
+ In the event that ares_destroy() is called prior to ares_getaddrinfo() completing,
+ it would result in an invalid read and double-free due to calling end_hquery() twice.
+
+ Reported By: Jann Horn @ Google Project Zero
+
+GitHub (30 Apr 2020)
+- [shelley vohr brought this change]
+
+ fix: windows UNICODE incompatibilities with ares_getaddrinfo (#328)
+
+ Fixes the following compatibility issues:
+ * Use RegQueryValueExA instead of RegQueryValueEx
+ * Use ExpandEnvironmentStringsA instead of ExpandEnvironmentStrings
+ * Use RegOpenKeyExA instead of RegOpenKeyExA
+ * Use GetWindowsDirectoryA instead of GetWindowsDirectoryA
+
+ Fix By: Shelley Vohr (@codebytere)
+ Closes: #327
+
+Brad House (13 Apr 2020)
+- travis: CloudFlare does not allow T_ANY requests, so live tests that use it fail. Disable.
+
+- travis: bump macos image to the latest
+
+- cast-align warnings are false for struct sockaddr, silence
+
+ Create a macro to silence false cast-align warnings when casting
+ struct sockaddr * to struct sockaddr_in * and struct sockaddr_in6 *.
+
+ Fix By: Brad House (@bradh352)
+
+- MacOS: Enable libresolv support for retrieving DNS servers like iOS does.
+
+GitHub (10 Apr 2020)
+- [Dmitry Igrishin brought this change]
+
+ CMake: Populate the INCLUDE_DIRECTORIES property of installed targets (#323)
+
+ Populate the INCLUDE_DIRECTORIES property of installed targets
+
+ Fix By: Dmitry Igrishin (@dmitigr)
+
+Brad House (10 Apr 2020)
+- travis: make valgrind use cmake for tests
+
+- dont try to use libtool to run valgrind
+
+- valgrind requires libtool installed to wrap tests
+
+- scan build 7
+
+- fix travis live test
+
+- add debug for travis
+
+- try without sudo
+
+- attempt to modernize travis build environment
+
+GitHub (6 Apr 2020)
+- [Teemu R brought this change]
+
+ Allow TXT records on CHAOS qclass (#321)
+
+ Some DNS servers intentionally "misuse" the obsoleted CHAOS (CH) qclass to provide things like `version.bind`, `version.server`, `authors.bind`, `hostname.bind` and `id.server`.
+
+ C-ares was not allowing such use cases.
+
+ Fix By: Teemu R. (@rytilahti)
+
+Brad House (5 Apr 2020)
+- Remove warnings from ares_getaddrinfo.3 man page
+
+ As reported in #319, non-standard macros of .IN were used.
+ Replace with .RS/.RE.
+
+ Fixes: #319
+ Fix By: Brad House (@bradh352)
+
+- ares_getaddrinfo man page render better for man2html
+
+- update man pages to render better for man2html
+
+Version 1.16.0 (12 Mar 2020)
+
+Brad House (12 Mar 2020)
+- 1.16.0 release notes draft
+
+- attempt to fix double-free introduced in e0517f9
+
+GitHub (12 Mar 2020)
+- [David Drysdale brought this change]
+
+ test: fuzzer input triggering double free (#315)
+
+ OSS-Fuzz has reported a double-free with the fuzzer input file
+ included here; run with:
+ ./test/aresfuzz test/fuzzinput/clusterfuzz-5637790584012800
+
+ Bisecting the failure points to commit e0517f97d988 ("Parse SOA records
+ from ns_t_any response (#103)")
+
+- [Brad House brought this change]
+
+ CMake: Install Manpages (#314)
+
+ CMake wasn't installing manpages.
+
+ Fixes #297
+ Fix By: Brad House (@bradh352)
+
+- [Brad House brought this change]
+
+ Enable cmake tests for AppVeyor (#313)
+
+ Tests require linking against the static library on Windows otherwise the symbols are not exported for internals being tested.
+
+ Fix By: Brad House (@bradh352)
+
+Brad House (11 Mar 2020)
+- Add AppVeyor badge
+
+- bump c-ares version to 1.16.0. test AppVeyor integration.
+
+GitHub (11 Mar 2020)
+- [Brad House brought this change]
+
+ replace all usages of inet_addr() with ares_inet_pton() which is more proper (#312)
+
+ Replace usage of inet_addr() with ares_inet_pton() which is more appropriate and fixes issues with legitimate addresses like 255.255.255.0. IPv6 already used this.
+
+ Fixes #309
+ Fix By: Brad House (@bradh352)
+
+- [Brad House brought this change]
+
+ CMake: Generate WinPDB files during build (#311)
+
+ Build and Install PDB (Windows Debug Symbol) files if supported by underlying system.
+
+ Also update AppVeyor to test cmake builds.
+
+ Fixes #245
+ Fix By: Piotr Pietraszkiewicz (@ppietrasa) and Brad House (@bradh352)
+
+- [Brad House brought this change]
+
+ CMake: Rework library function checking (#310)
+
+ CHECK_LIBRARY_EXISTS(), while it takes a function name, does not actually verify the function exists in the library being evaluated. Instead, if the function is found in any dependent library, and the referenced library also exists, it returns true. This is not desirable.
+
+ Wrap with a Macro to change the behavior.
+
+ Fixes: #307
+ Fix By: Brad House (@bradh352)
+
+- [Dron Rathore brought this change]
+
+ Parse SOA records from ns_t_any response (#103)
+
+ Added the capability of parsing SOA record from a response buffer of ns_t_any type query, this implementation doesn't interfere with existing T_SOA query's response as that too is treated as a list of records. The function returns ARES_EBADRESP if no SOA record is found(as per RFC).
+
+ The basic idea of sticking to RFC that a ns_t_any too should return an SOA record is something open for discussion but I have kept the functionality intact as it was previously i.e the function returns ARES_EBADRESP if it doesn't find a SOA record regardless of which response it is parsing i.e. T_SOA or T_ANY.
+
+ Note that asking for T_ANY is generally a bad idea:
+ - https://blog.cloudflare.com/what-happened-next-the-deprecation-of-any/
+ - https://tools.ietf.org/html/draft-ietf-dnsop-refuse-any
+
+ Bug: #102
+ Fix By: Dron Rathore (@DronRathore)
+
+- [Stephen Bryant brought this change]
+
+ Added CPack functionality for generating RPM or DEB packages (#283)
+
+ Added CPack functionality for generating RPM or DEB packages
+
+ ie: run `cpack -G RPM` (or "DEB") after building with CMake.
+
+ The current configuration creates 3 separate packages for the shared library,
+ the development files and the tools.
+
+ Fix By: Stephen Bryant (@bf-bryants)
+
+- [tjwalton brought this change]
+
+ ares_gethostbyname: Return ENODATA if no valid A or AAAA record found (#304)
+
+ ares_gethostbyname() was returning ESUCCESS when no A or AAAA record was found but a CNAME pointing nowhere was present. ENODATA should be returned instead, however the hosts pointer will still be present to provide the alias list.
+
+ * Return ENODATA if no valid A or AAAA record found
+ * Fix and update test ParseAReplyNoData.
+ * Add test for new ENODATA behaviour in ares_gethostbyname.
+
+ Fixes Bug #303
+ Fix By: @tjwalton
+
+- [Michal Rostecki brought this change]
+
+ test: Separate live tests from SetServers* tests (#299)
+
+ Before this change, SetServers, SetServersPorts and SetServersCSV
+ contained test cases trying to make DNS queries with the google.com
+ hostname, which requires Internet connectivity. Tests with that
+ requirement should be defined in the ares-test-live.cc file and contain
+ "Live" prefix to filter them out with `--gtest_filter=-*.Live*` on
+ machines without Internet connectivity.
+
+ Fix By: Michal Rostecki (@mrostecki)
+
+- [Adam Majer brought this change]
+
+ Only count valid addresses when response parsing (#302)
+
+ When ares_parse_a_reply or ares_parse_aaaa_reply is called in case
+ where another AAAA and A responses exist, the resulting ares_addrttl
+ count is invalid and the structure points to gibberish.
+
+ This is a regression since 1.15.
+
+ Issue: https://github.com/c-ares/c-ares/issues/300
+ Fix By: Adam Majer (@AdamMajer)
+
+Brad House (24 Dec 2019)
+- [Kyle Edwards brought this change]
+
+ CMake: Provide c-ares version in package export file (#296)
+
+ The CMake package export file should provide version information.
+
+ Fix By: Kyle Edwards (@KyleFromKitware)
+
+- [Ben Noordhuis brought this change]
+
+ Accept invalid /etc/resolv.conf lookup values, ability to build container tests (#274)
+
+ * Add CARES_BUILD_CONTAINER_TESTS CMake option to add ability to build the Linux-only containerized tests.
+ * Accept invalid /etc/resolv.conf lookup values
+
+ Before this commit invalid `lookup` values resulted in c-ares not using
+ any lookups without any clear indication why. After this commit it uses
+ the default "fb".
+
+ Fix By: Ben Noordhuis (@bnoordhuis)
+
+- [Christian Ammer brought this change]
+
+ Parallel A and AAAA lookups in `ares_getaddrinfo` (#290)
+
+ A and AAAA lookups for ares_getaddrinfo() are now performed in parallel.
+
+ For this change `ares_search` was removed from `ares_getaddrinfo`.
+ Instead `ares_query` in combination with `next_dns_lookup` are
+ doing the suffix search.
+
+ Adding support for `.onion` addresses which are tested by
+ `TEST_F(DefaultChannelTest, GetAddrinfoOnionDomain)`
+
+ Fix By: Christian Ammer (@ChristianAmmer)
+
+- [Vy Nguyen brought this change]
+
+ Move variables into the block where it is used to avoid unused-vars (#281)
+
+ Warning uncovered with [-Werror, -Wunused-variables]
+
+ Fix By: Vy Nguyen (@oontvoo)
+
+- [Vy Nguyen brought this change]
+
+ Rename local macros to avoid conflicting with system ones and remove unsed variables. (Otherwise code will break once compiled with [-Werror,-Wmacro-redefined,-Wunused-variable] ) (#280)
+
+ Fix new getaddrinfo code to not redefine macros on some systems.
+
+ Fix By: Vy Nguyen (@oontvoo)
+
+- [Egor Pugin brought this change]
+
+ [ares_getenv] Return NULL in all cases. (#279)
+
+ if ares_getenv is defined, it must return a value on all platforms.
+
+ Fix By: Egor Pugin (@egorpugin)
+
+- [Abhishek Arya brought this change]
+
+ Add OSS-Fuzz fuzzing badge (#278)
+
+ Adds based on instructions at
+ https://google.github.io/oss-fuzz/getting-started/new-project-guide/#status-badge
+
+ Patch By: Abhishek Arya (@inferno-chromium)
+
+- [Peter Eisentraut brought this change]
+
+ ares_init_options.3: Fix layout (#275)
+
+ 7e6af8e inserted the documentation of resolvconf_path in the middle of
+ the item for ednspsz, leading to broken layout. Fix that.
+
+ Fix By: Peter Eisentraut (@petere)
+
+- [Gregor Jasny brought this change]
+
+ manpages: Fix typos detected by lintian (#269)
+
+
+ Fix By: Gregor Jasny (@gjasny)
+
+- [lifenjoiner brought this change]
+
+ keep command line usage up to date (#256)
+
+ adig and ahost built-in help did not match args taken.
+
+ Fix-By: @lifenjoiner
+
+- [Dan Noé brought this change]
+
+ ares-test.cc: Handle nullptr in AddrInfo ostream. (#268)
+
+ The const AddrInfo& argument to operator<< overload for AddrInfo can be
+ a nullptr unique_ptr. Handle this explicitly by printing {nullptr} if
+ the rest of the function cannot be safely executed.
+
+ Fix-by: Dan Noé <dpn@google.com>
+
+- [Dan Noé brought this change]
+
+ Add missing limits.h include from ares_getaddrinfo.c (#267)
+
+ This files references INT_MAX, but does not include limits.h. This can
+ cause a build failure on some platforms. Include limits.h if we have it.
+
+ Fix-by: Dan Noé <dpn@google.com>
+
+- [Andrew Selivanov brought this change]
+
+ fix fuzzer docs and add missing getaddrinfo docs (#265)
+
+ There is a fix for a bit outdated clang fuzzer docs and ares_getaddrinfo docs.
+
+ Fix By: Andrew Selivanov (@ki11roy)
+
+- [Andrew Selivanov brought this change]
+
+ Fix leak and crash in ares_parse_a/aaaa_reply (#264)
+
+ * fix leak if naddress of particular type found
+ * fix segfault when wanted ttls count lesser than count of result records
+ * add fuzzer input files that trigger problems (from #263)
+
+ Reported-By: David Drysdale (@daviddrysdale)
+ Fix-By: Andrew Selivanov (@ki11roy)
+
+- [Andrew Selivanov brought this change]
+
+ fix segfault when parsing wrong type of record (#262)
+
+ Fixes segfault when trying to ares_parse_aaaa with AF_INET and vise versa.
+
+ Fix By: Andrew Selivanov (@ki11roy)
+
+- work around mingw compile failure
+
+- c++ requires explicit casts
+
+- support EnvValue on Windows by implementing setenv/unsetenv
+
+- [Andrew Selivanov brought this change]
+
+ getaddrinfo enhancements (#257)
+
+ * Service support has been added to getaddrinfo.
+ * ares_parse_a/aaaa_record now share code with the addrinfo parser.
+ * Private ares_addrinfo structure with useful extensions such as ttls (including cname ttls),
+ as well as the ability to list multiple cnames in chain of lookups
+
+ Work By: Andrew Selivanov @ki11roy
+
+- [Andrew Selivanov brought this change]
+
+ fix ares__sortaddrinfo, use wrappers for sock_funcs (#258)
+
+ Some socket functions weren't exposed for use by other areas of the library. Expose
+ those and make use of them in ares__sortaddrinfo().
+
+ Fix By: Andrew Selivanov (@ki11roy)
+
+- Fix c89 compilation support broken by .onion rejection changes
+
+ Move .onion check lower after all variables have been declared.
+
+ Bug: #246
+
+- [kedixa brought this change]
+
+ getaddrinfo: callback must be called on bad domain (#249)
+
+ Due to an order of incrementing the remaining queries and calling ares_query, on a bad domain
+ the registered callback wouldn't be called.
+
+ Bug: #248
+ Fixed-By: @kedixa
+
+- [Darrin W. Cullop brought this change]
+
+ Windows ARM/ARM64 requires AdvApi32 (#252)
+
+ Fix link issues caused by missing library that appears to only be required on ARM (though
+ docs don't list this restriction). Doesn't hurt to require it everywhere.
+
+ Bug: #251
+ Fixed-By: Darrin Cullop (@dwcullop)
+
+- [kedixa brought this change]
+
+ getaddrinfo: avoid infinite loop in case of NXDOMAIN(#240) (#242)
+
+ There are two possible causes for infinite loops fo NXDOMAIN, based on how many dots are in the domain name (one for < ARES_OPT_NDOTS and one for >= ARES_OPT_NDOTS), where it will repeat the same query over and over as the hquery->next_domain doesn't increment.
+
+ Fix By: @kedixa
+
+- Portability fix for ares__sortaddrinfo()
+
+ replace uint32_t with unsigned int and socklen_t with ares_socklen_t
+
+ By: Brad House
+
+- [Khaidi Chu brought this change]
+
+ fix: init bufp before reject .onion to make it can be free correctly (#241)
+
+ When querying a .onion domain, it returns directly without setting bufp to NULL. A subsequent free() that occurs can cause a segmentation fault.
+
+ Fix By: Khaidi Chu (@XadillaX)
+
+- [Andrew Selivanov brought this change]
+
+ Add ares__sortaddrinfo() to support getaddrinfo() sorted results (#239)
+
+ This is a port of RFC 6724 compliant sorting function from Android Bionic project:
+ https://android.googlesource.com/platform/bionic/+/e919b116d35aa7deb24ddece69c491e24c3b0d6f/libc/netbsd/net/getaddrinfo.c
+
+ The latest version is essentially the same, except two additional parameters to test connection with (mark/uid):
+ https://android.googlesource.com/platform/bionic/+/master/libc/dns/net/getaddrinfo.c
+
+ Please note that even that version has some restrictions. It doesn't support some rules from RFC 6724:
+
+ Rule 3 (Avoid deprecated addresses)
+ Rule 4 (Prefer home addresses)
+ Rule 7 (Prefer native transport)
+
+ Submitted By: Andrew Selivanov (@ki11roy)
+
+- [Christian Ammer brought this change]
+
+ Increase portability of `ares-test-mock-ai.cc` (#235)
+
+ * using portable ares_inet_pton and updated includes in ares-test-mock-ai
+ * forgot to remove deleted ares-test-ai.cc in Makefile.inc
+
+ Fix By: Christian Ammer (@ChristianAmmer)
+
+- [Fabrice Fontaine brought this change]
+
+ m4/xc-cc-check.m4: use XC_CHECK_BUILD_FLAGS (#236)
+
+ Use XC_CHECK_BUILD_FLAGS instead of XC_CHECK_USER_FLAGS.
+ Otherwise it complains of CPPFLAGS in CFLAGS.
+ [Retrieved from:
+ https://git.buildroot.net/buildroot/tree/package/c-ares/0001-use_check_build_instead_of_check_user.patch]
+
+ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+ Submitted by: Fabrice Fontaine
+
+- [Christian Ammer brought this change]
+
+ Bugfix for `ares_getaddrinfo` and additional unit tests (#234)
+
+ This PullRequest fixes a bug in the function add_to_addrinfo which task is to add new addrinfo items to the ai_next linked list. Also additional unit tests for testing ares_getaddrinfo will be added:
+
+ Additional mock server test classes (ares-test-mock-ai.cc):
+ MockTCPChannelTestAI
+ MockExtraOptsTestAI
+ MockNoCheckRespChannelTestAI
+ MockEDNSChannelTestAI
+ RotateMultiMockTestAI
+ NoRotateMultiMockTestAI
+
+ Additional live tests (ares-test-live-ai.cc):
+ LiveGetHostByNameV4
+ LiveGetHostByNameV6
+ LiveGetHostByNameV4AndV6
+
+ Fix By: Christian Ammer (@ChristianAmmer)
+
+- [Christian Ammer brought this change]
+
+ Remaining queries counter fix, additional unit tests for `ares_getaddrinfo` (#233)
+
+ Remaining queries counter fix, added tests (ParallelLookups,
+ SearchDomains, SearchDomainsServFailOnAAAA). Removed unnecessary
+ if and commented code in test.
+
+ Fix By: Christian Ammer (@ChristianAmmer)
+
+- [Christian Ammer brought this change]
+
+ Add initial implementation for ares_getaddrinfo (#112)
+
+ Initial implementation for ares_getaddrinfo(). It is NOT compliant with RFC6724, though
+ it is expected to come closer to conformance prior to the next release.
+
+ Features not supported include sorted addresses and honoring of service and hints
+ parameters.
+
+ Implementation by: Christian Ammer (@ChristianAmmer)
+
+- [Ben Noordhuis brought this change]
+
+ test: fix bad expectation in ipv6 localhost test (#227)
+
+ The LiveGetLocalhostByAddrV6 test expected to see "localhost" in the
+ result when doing an address-to-name lookup for ::1 but on my system
+ that resolves to "ip6-loopback" because of this stanza in /etc/hosts:
+
+ $ grep ^::1 /etc/hosts
+ ::1 ip6-localhost ip6-loopback
+
+ Fix By: Ben Noordhuis (@bnoordhuis)
+ Bug: #85
+
+- [Ben Noordhuis brought this change]
+
+ ares_version.h: bump version (#230)
+
+ Version change not committed from maketgz.sh
+
+ Bug: #229
+
+Daniel Stenberg (24 Oct 2018)
+- ares_library_init_android.3: minor syntax edits, fixed AVAILABILITY
+
+Version 1.15.0 (23 Oct 2018)
+
+Brad House (23 Oct 2018)
+- last minute 1.15.0 addition
+
+- [Ben Noordhuis brought this change]
+
+ Report ARES_ENOTFOUND for .onion domain names as per RFC7686. (#228)
+
+ Quoting RFC 7686:
+
+ Name Resolution APIs and Libraries (...) MUST either respond
+ to requests for .onion names by resolving them according to
+ [tor-rendezvous] or by responding with NXDOMAIN.
+
+ A legacy client may inadvertently attempt to resolve a .onion
+ name through the DNS. This causes a disclosure that the client
+ is attempting to use Tor to reach a specific service. Malicious
+ resolvers could be engineered to capture and record such leaks,
+ which might have very adverse consequences for the well-being
+ of the user.
+
+ Bug: #196
+ Fix By: Ben Noordhuis @bnoordhuis
+
+- prepare for c-ares 1.15.0 release
+
+- AIX Build Fix
+
+ AIX attempts to include both nameser_compat.h and onameser_compat.h. It appears
+ the proper fix is to define _USE_IRS so that only nameser_compat.h is used.
+
+ Bug: #224
+ Fix By: Brad House (@bradh352)
+
+- Fix crash in ares_dup() due to new ARES_OPT_RESOLVCONF
+
+ ares_dup() calls ares_init_options() by making its own fake option
+ mask since the original mask isn't stored but ARES_OPT_RESOLVCONF
+ was always set, instead of conditionally set. This caused a crash
+ because ares_strdup() isn't NULL-safe if no custom path was set.
+
+ Made ares_dup() set ARES_OPT_RESOLVCONF conditionally.
+
+ Fix By: Brad House (@bradh352)
+
+- [Sarat Addepalli brought this change]
+
+ Add ares_init_options() configurability for path to resolv.conf file
+
+ Add resolvconf_path to end of struct ares_options with ARES_OPT_RESOLVCONF option
+ so on Unix-like systems a custom path can be specified. If no path is specified,
+ /etc/resolv.conf is used like normal.
+
+ Fix By: Sarat Addepalli @SirR4T
+ Fixes Bug: #220
+ Review By: Brad House @bradh352
+
+- remove stale variables
+
+- fix prototype name for ares_strsplit_free()
+
+- add missing prototype
+
+- simplify ares_strsplit() and create ares_strsplit_free() helper function
+
+- missing ares_strsplit.h from HHEADERS for inclusion in distribution
+
+- [Ruslan Baratov brought this change]
+
+ Add CARES_BUILD_TOOLS CMake option (#214)
+
+ Add ability to exclude building of tools (adig, ahost, acountry) in CMake. This should also close #200.
+
+ Fix By: Ruslan Baratov (@ruslo)
+ Bug: #200
+
+- [flyingdutchman23 brought this change]
+
+ Style. Whitespace cleanup. (#213)
+
+ Small whitespace cleanups.
+
+ Fix By: @flyingdutchman23
+
+- [John Schember brought this change]
+
+ Android: Support for domain search suffix (#211)
+
+ Fixes issue #207. Uses LinkProperties.getDomains() to get a list of search domains and adds them to the suffix list. This also adds a new helper function to split strings into an array based on multiple delimiters replacing multiple other functions for dealing with string splitting.
+
+ Submitter: John Schember (@user-none)
+ Fixes: #207
+ Approved-by: Brad House (@bradh352)
+
+- [afalin brought this change]
+
+ Improve DNS suffixes extracting from WinNT registry (#202)
+
+ Join all global and connection specific suffix lists. Use 'HKLM\Software\Policies\Microsoft\Windows NT\DNSClient\SearchList', 'HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Domain' as global suffix lists.
+
+ Fix By: @afalin
+
+- Be consistent with indention in CMakeLists.txt
+
+ The imported TRANSFORM_MAKEFILE_INC function from curl used space indention
+ but the rest of the file used tabs. Go ahead and make it tabs for
+ consistency as well.
+
+ Committed By: Brad House
+
+- [flyingdutchman23 brought this change]
+
+ Fix modern gcc warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source
+
+ Silence warning about using src to determine number of bytes to copy.
+ In this case it doesn't matter whether it is `src` or `dest`. So there
+ is no functionality change.
+
+ Bug: #210
+ Fix By: @flyingdutchman23
+
+- [Andi Schnebinger brought this change]
+
+ fix stringop-overflow warning of GCC (#201)
+
+ When using a modern GCC to compile c-ares, there is a stringop-overflow warning.
+ This patch simply silences the false-positive warning, there is no actual code flaw.
+
+ Bug: https://github.com/c-ares/c-ares/pull/201
+ Fixed By: Andi Schnebinger @Iniesta8
+
+GitHub (18 May 2018)
+- [David Drysdale brought this change]
+
+ travis: do coverage in "coverage" build (#195)
+
+ Fixes #194, a mistake from commit a255081f2c3c ("travis: Only do
+ coverage/distcheck on normal build")
+
+Brad House (17 May 2018)
+- [Brad Spencer brought this change]
+
+ Apply the IPv6 server blacklist to all nameserver sources, not just Windows (#193)
+
+ For #164, I mentioned that it seemed like the IPv6 nameserver blacklist should apply to all OSes. In a mailing list post, @bradh352 agreed and suggested that I file a PR to make it so.
+
+ This moves the blacklist check from being Windows-specific to being a general feature of config_nameservers(), no matter the nameserver source. It also simplifies the ares_ipv6_server_blacklisted() implementation to not parse and re-parse the blacklisted IPv6 addresses from strings on every check. I think they're almost as easy to read as a sequence of hex bytes in an array initializer, and it's definitely less work on each trip through the code.
+
+ Fix By: Brad Spencer @b-spencer
+ PR: https://github.com/c-ares/c-ares/pull/193
+
+- [Brad Spencer brought this change]
+
+ Fix warnings emitted by MSVC when using -W4 (#192)
+
+ These changes fix a few warnings emitted by recent versions of MSVC when compiling with -W4. Half of the changes are in Windows-specific code, and the other half should be safe no matter the compiler or OS.
+
+ The allocation function change is probably the only one that needs explanation. MSVC gives warnings about the function pointers not being stable across DLL boundaries or something to that effect, so for Windows, I've made them be called indirectly, which at least made the compiler happy. I can't say I've tested every linking combination on Windows with them before or after the change, but it seems harmless.
+
+ Fix By: Brad Spencer @b-spencer
+ PR: https://github.com/c-ares/c-ares/pull/192
+
+- [David Hotham brought this change]
+
+ Prevent changing name servers while queries are outstanding (#191)
+
+ Changing name servers doesn't work, per #41. Better to return an error code than to crash.
+
+ Fix-by: David Hotham @dimbleby
+
+David Drysdale (15 May 2018)
+- [Tobias Nießen brought this change]
+
+ Fix comment in ares_rules.h (#189)
+
+Brad House (6 May 2018)
+- [Brad Spencer brought this change]
+
+ Harden and rationalize c-ares timeout computation (#187)
+
+ * Harden and rationalize c-ares timeout computation
+ * Remove the rand() part of the timeout calculation completely.
+
+ When c-ares sends a DNS query, it computes the timeout for that request as follows:
+
+ timeplus = channel->timeout << (query->try_count / channel->nservers);
+ timeplus = (timeplus * (9 + (rand () & 7))) / 16;
+ I see two issues with this code. Firstly, when either try_count or channel->timeout are large enough, this can end up as an illegal shift.
+
+ Secondly, the algorithm for adding the random timeout (added in 2009) is surprising. The original commit that introduced this algorithm says it was done to avoid a "packet storm". But, the algorithm appears to only reduce the timeout by an amount proportional to the scaled timeout's magnitude. It isn't clear to me that, for example, cutting a 30 second timeout almost in half to roughly 17 seconds is appropriate. Even with the default timeout of 5000 ms, this algorithm computes values between 2812 ms and 5000 ms, which is enough to cause a slightly latent DNS response to get spuriously dropped.
+
+ If preventing the timers from all expiring at the same time really is desirable, then it seems better to extend the timeout by a small factor so that the application gets at least the timeout it asked for, and maybe a little more. In my experience, this is common practice for timeouts: applications expect that a timeout will happen at or after the designated time (but not before), allowing for delay in detecting and reporting the timeout. Furthermore, it seems like the timeout shouldn't be extended by very much (we don't want a 30 second timeout changing into a 45 second timeout, either).
+
+ Consider also the documentation of channel->timeout in ares_init_options():
+
+ The number of milliseconds each name server is given to respond to a query on the first try. (After the first try, the timeout algorithm becomes more complicated, but scales linearly with the value of timeout.) The default is five seconds.
+
+ In the current implementation, even the first try does not use the value that the user supplies; it will use anywhere between 56% and 100% of that value.
+
+ The attached patch attempts to address all of these concerns without trying to make the algorithm much more sophisticated. After performing a safe shift, this patch simply adds a small random timeout to the computed value of between 0 ms and 511 ms. I could see limiting the random amount to be no greater than a proportion of the configured magnitude, but I can't see scaling the random with the overall computed timeout. As far as I understand, the goal is just to schedule retries "not at the same exact time", so a small difference seems sufficient.
+
+ UPDATE: randomization removed.
+
+ Closes PR #187
+ Fix by: Brad Spencer
+
+- distribute ares_android.h
+
+ Distribute ares_android.h when a release distribution package is
+ created.
+
+ Reported By: Andrey Khranovsky
+ Bug: https://c-ares.haxx.se/mail/c-ares-archive-2018-04/0000.shtml
+
+- ares_set_servers_csv() on failure should not leave channel in a bad state
+
+ If bad data is passed to ares_set_servers_csv() or
+ ares_set_servers_ports_csv() it will clear the existing channel
+ configured DNS servers, then a call to ares_send() will fail due
+ to a bad malloc which may have undefined behavior.
+
+ The fix now only clears existing servers on success. An additional
+ sanity check was added in ares_send() to ensure nservers >= 1 or
+ will result in ARES_ESERVFAIL.
+
+ Bug: https://c-ares.haxx.se/mail/c-ares-archive-2018-03/0000.shtml
+ Reported-by: Francisco Sedano Crippa
+
+- docs: Not all manpages are listed
+
+ Some docs aren't installed or not showing up on
+ https://c-ares.haxx.se/docs.html
+ due to not being listed in Makefile.inc. Add missing docs and
+ ensure docs are alphabetized.
+
+Version 1.14.0 (16 Feb 2018)
+
+Daniel Stenberg (16 Feb 2018)
+- ares_android.c: fix warning: ISO C forbids an empty translation unit
+
+- RELEASE-NOTES: some more work we did and people who helped
+
+Brad House (16 Feb 2018)
+- travis: skip Autotools style testing for cmake
+
+ Fix cmake test build by skipping autotools portion of test script.
+
+- travis: standardize CMake test off of Autotools tests
+
+ Instead of running 'make test', run the tests directly like autotools
+ does. It provides more verbose output.
+
+- travis: Enable building tests for CMake
+
+ Travis should auto-build and run tests for cmake builds now that
+ PR #168 is merged.
+
+- fix version in pkgconfig
+
+- Add version update to CMakeLists in maketgz
+
+- Release prep. Add support for pkgconfig in cmake, set versions appropriately
+
+Gregor Jasny (15 Feb 2018)
+- CMake: Add tests
+
+Brad House (14 Feb 2018)
+- [Gregor Jasny brought this change]
+
+ Use cmake3 package provided by Ubuntu (#182)
+
+- Cmake 3.1 instead of 3.2.1 should be the minimum
+
+- Update RELEASE-NOTES and RELEASE-PROCEDURE.md to prepare for next release
+
+- get rid of c++ style comments
+
+- Use trusty for all builds, precise is EOL. Update clang and cmake versions.
+
+- Current CMakeLists.txt doesn't support 2.8.12 anymore, we need to bump the version to 3.2.1 minimum
+
+- Re-organize sections in INSTALL.md and add CMake section
+
+- [Sergey Kolomenkin brought this change]
+
+ remove compilation warnings in MSVC (#47)
+
+- document handling of timeouts for ares_process and ares_process_fd to close PR #57
+
+- As per Issue #155, since we do not require gethostname() during init, if it fails, there's no reason for init to fail as it is only used to populate the domain
+
+GitHub (7 Feb 2018)
+- [David Drysdale brought this change]
+
+ Document WSAStartup requirement (#180)
+
+David Drysdale (6 Feb 2018)
+- [Antonio Tajuelo brought this change]
+
+ Added coderelease.io badge to readme.md for letting people subscribe to new versions (#174)
+
+- [Sheel Bedi brought this change]
+
+ Update year in LICENSE.md to 2018 (#170)
+
+GitHub (4 Feb 2018)
+- [David Drysdale brought this change]
+
+ travis: use VM not container for {L,A}SAN builds (#177)
+
+ As per https://github.com/travis-ci/travis-ci/issues/9033, container
+ based builds do not currently allow ptrace, which is used by LSAN and
+ ASAN.
+
+Brad House (3 Feb 2018)
+- [acthompson-google-com brought this change]
+
+ Android JNI code leaks local references in some cases (#175)
+
+ * Add Google LLC to AUTHORS.
+
+ * android: Explicitly delete all JNI local references, and cache JNI method IDs at initialization.
+
+ * android: Only return ARES_ENOTINITIALIZED on failures in initialization code.
+
+Gregor Jasny (2 Jan 2018)
+- Embed fused Google Test 1.8.0
+
+Brad House (21 Dec 2017)
+- [John Schember brought this change]
+
+ android: Check returns for obj and classes are not NULL. Document API levels for various Android functions and objects used. (#166)
+
+- CARES_CHECK_TYPE should reference variable so a warning is not produced for -Werror compatibility
+
+- [Brad Spencer brought this change]
+
+ Fix computation of IPv6 blacklist mask for values of netmask > 8. (#164)
+
+David Drysdale (14 Dec 2017)
+- travis: Only do coverage/distcheck on normal build
+
+- travis: only do pip install on Linux
+
+- travis: only test in IPv4 mode
+
+ Travis' Trusty environment does not support IPv6.
+
+- test: allow restriction to one IP address family
+
+- [Roman Teterin brought this change]
+
+ Fix a typo in init_by_resolv_conf (#160)
+
+Brad House (11 Dec 2017)
+- @gvanem says MSVC -RTCc option fails, looks erroneous to me, but the additional mask is harmless
+
+- Fix some other mingw warnings
+
+- Issue #143, get rid of windows build warning due to passing 'char **' to argument expecting 'const char **'
+
+- [Gregor Jasny brought this change]
+
+ Distribute CMake files (#130)
+
+- Android variants may not have __system_property_get
+
+ Some android systems like ARM64 may not have the __system_property_get
+ symbol in libc (but still have it in the public headers). Detect this
+ condition at build time. The __system_property_get method of retrieving
+ name servers is deprecated as of Oreo so should strictly be a fallback
+ mechanism anyhow.
+
+David Drysdale (9 Nov 2017)
+- [David Hotham brought this change]
+
+ Wrong function name throughout man page (#154)
+
+- ares_data.c: iterate through substructs when freeing
+
+ Previous code recursed into substructures, which makes it more likely
+ that large/heavily-nested responses could use up lots of stack.
+
+- test: test ares_free_data on long chain of structs
+
+- [Felix Yan brought this change]
+
+ Fix a typo in inet_ntop.c (#151)
+
+Daniel Stenberg (29 Sep 2017)
+- ares_gethostbyname.3: fix callback status values
+
+ - ARES_ENOTFOUND means the _name_ wasn't found
+
+ - ARES_ENODATA can be returned when a resolve fails
+
+ Reported-by: Jakub Hrozek
+ Bug: https://c-ares.haxx.se/mail/c-ares-archive-2011-06/0012.shtml
+
+Brad House (28 Sep 2017)
+- [John Schember brought this change]
+
+ Fix DNS server lookup breaking with Android O due to Android removing access to net.dns# system properties. (#148)
+
+ As of Android 8 (Oreo) access to net.dns# has been removed (https://developer.android.com/about/versions/oreo/android-8.0-changes.html). The reasoning given is that it, "improves privacy on the platform". Currently c-ares uses this to get the list of DNS servers.
+
+ Now the only way to access the DNS server list is by using the Connectivity Manager though Java. This adds the necessary JNI code to use the Connectivity Manager and pull the DNS server list. The old way using __system_property_get with net.dns# remains for compatibilty.
+
+ Using the Connectivity Manager requires the ACCESS_NETWORK_STATE permission to be set on the app. Existing applications most likely are not setting this and keeping the previous method as a fallback will at the very least ensure those apps don't break on older versions of Android. They will need to add this permission for Android 8 compatibility.
+
+ Included in the patch are two initalization functions which are required. The JVM must be registered as well as the Connectivity Manager itself. There is no way to get the Connectivity Manager except though Java. Either being passed down to C directly or by passing in an Android Context which can be used to get the Connectivity Manager. Examples are provided in the documentation.
+
+- [Konstantinos Sofokleous brought this change]
+
+ allow linking against the static msvc runtime library (#133)
+
+ allow linking against the static msvc runtime library
+
+- [Gergely Nagy brought this change]
+
+ Force using the ANSI versions of WinAPI functions (#142)
+
+ When compiling c-ares with a build system that defines UNICODE,
+ bad versions of WinAPI functions are used causing failures or even
+ crashes. When windows.h is included in MBCS mode (like in the default
+ build system), the ..A versions are the same as using the one without
+ any suffix.
+
+- [cmake] build fix on Solaris
+
+GitHub (11 Sep 2017)
+- [Brad House brought this change]
+
+ Win32 exclude legacy ipv6 subnets (#144)
+
+ win32 ipv6: add infrastructure to exclude ipv6 subnets that are known to cause issues
+
+- [David Drysdale brought this change]
+
+ windows: only look for ancient compilers (#146)
+
+ Also drop the use of a versioned output directory; just use
+ .\msvc
+
+- [David Drysdale brought this change]
+
+ ares_init_options.3: match up sock_state_cb args (#141)
+
+ Fixes #140
+
+Daniel Stenberg (25 Aug 2017)
+- [Anna Henningsen brought this change]
+
+ gethostbyaddr: fail with `ECANCELLED` for `ares_cancel()`
+
+ When `ares_cancel()` was invoked, `ares_gethostbyaddr()`
+ queries would fail with `ENOTFOUND` instead of `ECANCELLED`.
+
+ It seems appropriate to treat `ares_cancel()` like `ares_destroy()`,
+ but I would appreciate review of the correctness of this change.
+
+ Ref: https://github.com/nodejs/node/issues/14814
+
+ Closes #138
+
+David Drysdale (18 Aug 2017)
+- [David Hotham brought this change]
+
+ support most recent Visual Studio 2017
+
+Brad House (26 Jul 2017)
+- Preserve original DNS server order on Windows for equal metrics.
+
+ qsort is not stable, in order to make it stable we need to record
+ the original index and add it as a secondary sort value when the
+ metrics are equal to prevent using DNS servers that may not work
+ at all as reported by some users.
+
+David Drysdale (15 Jul 2017)
+- [Anna Henningsen brought this change]
+
+ ares_parse_naptr_reply: make buffer length check more accurate
+
+ 9478908a490a6bf009ba58d81de8c1d06d50a117 introduced a length check
+ for records parsed by `ares_parse_naptr_reply()`. However, that
+ function is designed to parse replies which also contain non-NAPTR
+ records; for A records, the `rr_len > 7` check will fail as there
+ are only 4 bytes of payload.
+ In particular, parsing ANY replies for NAPTR records was broken
+ by that patch.
+
+ Fix that by moving the check into the case in which it is already
+ known that the record is a NAPTR record.
+
+- appveyor: run dnsdump as a sanity check
+
+- travis: run dnsdump as a sanity check
+
+- test: use ares_free_string() throughout
+
+ As pointed out by Gisle Vanem in #125.
+
+Daniel Stenberg (3 Jul 2017)
+- RELEASE-PROCEDURE.md: how to release
+
+ Fixes #115
+ Closes #116
+
+David Drysdale (2 Jul 2017)
+- test: Build dnsdump on Windows too
+
+ Thanks to Gisle Vanem for showing the way:
+ https://github.com/c-ares/c-ares/commit/b701af8a24cf9d173b1dbe5faedcea34642e92da#commitcomment-22830845
+
+Brad House (26 Jun 2017)
+- [Christian Ammer brought this change]
+
+ fix statement like #define - ares ssize_t define had a trailing semicolon (#120)
+
+David Drysdale (21 Jun 2017)
+- test: distribute the fuzzcheck.sh script
+
+ The TESTS target runs fuzzcheck.sh so make sure it is included
+ in the distributed tarball.
+
+ (The test itself will be pointless when run on a distribution, because
+ the fuzzing corpus directories are not shipped, but at least this
+ means that `make -C test test` should work.)
+
+- test: run the name-parsing corpus check too
+
+Daniel Stenberg (21 Jun 2017)
+- dist: don't build/ship PDF versions in release archives
+
+ ... experience says very few read them and they can still get build by
+ those who want them.a
+
+- ares_version.h: bump version
+
+Version 1.13.0 (20 Jun 2017)
+
+Daniel Stenberg (20 Jun 2017)
+- RELEASE-NOTES: 1.13.0
+
+- ares_set_socket_functions.3: added in 1.13.0
+
+David Drysdale (18 Jun 2017)
+- ares_parse_naptr_reply: check sufficient data
+
+ Check that there is enough data for the required elements
+ of an NAPTR record (2 int16, 3 bytes for string lengths)
+ before processing a record.
+
+- test: Feed in short NAPTR
+
+- test: Add fuzz input with short NAPTR
+
+- test: add ares_parse_naptr_reply to fuzzer
+
+- [noiz brought this change]
+
+ Update ares.h to support compiling with QNX
+
+- [Dionna Glaze brought this change]
+
+ Simple changes to appease stricter compilers.
+
+ ares_process.c uses htonl, which needs <arpa/inet.h> included.
+ ares_getnameinfo.c uses a dynamically selected format string for
+ sprintf, which -Wformat-literal doesn't like. Usually one would use
+ inttypes.h and a format string "%" PRIu32, but C99 is too new for some
+ supported platforms.
+
+GitHub (16 Jun 2017)
+- [Gregor Jasny brought this change]
+
+ CMake: Emulate interface library on import (#108)
+
+ Closes: #104
+ Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
+
+Brad House (6 Jun 2017)
+- [ChristianAmmer brought this change]
+
+ Added support for Windows DNS Suffix Search List (#93)
+
+ This change solves issue #53.
+
+ Support for suffix search lists was already built in for Linux. The search list could be set via set_search. With this change the suffix search list from Windows is read from the registry and then set into the ares configuration via set_search. There are two sources for the search list:
+
+ The global DNS suffix search list.
+ The primary and connection specific DNS suffixes if the global is not available.
+
+ Contributed by @ChristianAmmer
+
+Daniel Stenberg (25 May 2017)
+- [Thomas Köckerbauer brought this change]
+
+ configure: do not heck for ar if specified manually
+
+ Closes #62
+
+David Drysdale (23 May 2017)
+- ares_expand_name: limit number of indirections
+
+- test: fuzz input file that takes a while to process
+
+- test: copy data in fuzz regression driver
+
+ Oops.
+
+GitHub (23 May 2017)
+- [David Drysdale brought this change]
+
+ Convert char from ISO-8859-1 to UTF-8 (#99)
+
+ Fixes #97
+
+- [Gregor Jasny brought this change]
+
+ travis: Use trusty for cmake builds (#109)
+
+ kubuntu-backports dropped the CMake package for Precise
+
+David Drysdale (2 May 2017)
+- [David Hotham brought this change]
+
+ msvc_ver.inc support most recent Visual Studio 2017 (#101)
+
+- test: use io.h not unistd.h for Windows
+
+- test: try building fuzz binaries on Windows
+
+- test: stick to int in ares-fuzz.c
+
+ Using int rather than ares_ssize_t means this file
+ needs no c-ares dependency - it's a general driver for
+ any libFuzzer-style entrypoint.
+
+- test: force ARES_OPT_NOROTATE for no-rotate tests
+
+- test: check expected NOROTATE value
+
+- ares_create_query: use ares_free not naked free
+
+ Accidentally added in commit 65c71be1cbe5
+ ("ares_create_query: avoid single-byte buffer overwrite")
+
+Brad House (17 Mar 2017)
+- Need ares.h for ares_ssize_t
+
+- tests should not use ssize_t, use ares_ssize_t
+
+GitHub (16 Mar 2017)
+- [Brad House brought this change]
+
+ Portability updates for legacy systems. (#92)
+
+ Socklen_t should not be used in code, instead ares_socklen_t should be used.
+ Convert ssize_t to ares_ssize_t for portability since the public API now exposes this.
+
+David Drysdale (14 Mar 2017)
+- [Michael Osei brought this change]
+
+ Update msvc_ver.inc (#91)
+
+ For Visual Studio 2017 builds
+
+Daniel Stenberg (13 Mar 2017)
+- [Brad House brought this change]
+
+ Windows DNS server sorting (#81)
+
+ Original Patch From Brad Spencer:
+ https://c-ares.haxx.se/mail/c-ares-archive-2016-04/0000.shtml
+
+ My modifications include:
+ * Dynamically find GetBestRoute2 since it is a Windows Vista+ symbol, and will fall back to prior behavior when not available.
+ * Prefer get_DNS_AdaptersAddresses as the modifications should alleviate the concerns which caused us to prefer get_DNS_NetworkParams
+ * Update AppVeyor to use MinGW-w64 instead of the legacy MinGW
+ * Fix compile error in test suite for Windows.
+
+ Original message from patch below:
+
+ From: Brad Spencer <bspencer@blackberry.com>
+ Date: Fri, 29 Apr 2016 14:26:23 -0300
+
+ On Windows, the c-ares DNS resolver tries first to get a full list of
+ DNS server addresses by enumerating the system's IPv4/v6 interfaces and
+ then getting the per-interface DNS server lists from those interfaces
+ and joining them together. The OS, at least in the way the c-ares
+ prefers to query them (which also may be the only or best way in some
+ environments), does not provide a unified list of DNS servers ordered
+ according to "current network conditions". Currently, c-ares will then
+ try to use them in whatever order the nested enumeration produces, which
+ may result in DNS requests being sent to servers on one interface
+ (hosting the current default route, for example) that are only intended
+ to be used via another interface (intended to be used when the first
+ interface is not available, for example). This, in turn, can lead to
+ spurious failures and timeouts simply because of the server address
+ order that resulted because of the enumeration process.
+
+ This patch makes the (safe?) assumption that there is no other better
+ rule to chose which interface's DNS server list should be prioritized.
+ After all, a DNS lookup isn't something "per network"; applications
+ don't look up "these DNS names on this interface and those DNS names on
+ that interface". There is a single resource pool of DNS servers and the
+ application should presume that any server will give it the "right"
+ answer. However, even if all DNS servers are assumed to give equally
+ useful responses, it is reasonable to expect that some DNS servers will
+ not accept requests on all interfaces. This patch avoids the problem by
+ sorting the DNS server addresses using the Windows IPv4/v6 routing tables.
+
+ For example, a request to DNS server C on interface 2 that is actually
+ sent over interface 1 (which may happen to have the default route) may
+ be rejected by or not delivered to DNS server C. So, better to use DNS
+ servers A and B associated with interface 1, at least as a first try.
+
+ By using the metric of the route to the DNS server itself as a proxy for
+ priority of the DNS server in the list, this patch is able to adapt
+ dynamically to changes in the interface list, the DNS server lists per
+ interface, which interfaces are active, the routing table, and so on,
+ while always picking a good "best" DNS server first.
+
+ In cases where any DNS server on any interface will do, this patch still
+ seems useful because it will prioritize a lower-metric route's (and thus
+ interface's) servers.
+
+David Drysdale (22 Feb 2017)
+- [Sergii Pylypenko brought this change]
+
+ docs: fixed references to ares_set_local_ip4 and ares_set_local_ip6
+
+- [Calle Wilund brought this change]
+
+ ares test: fix win32 build errors with virtual socket function tests
+
+ The added api requires both some typedefs not previously imported
+ into the test build + the test code did not fully deal with
+ socket differences on windows.
+
+- [Calle Wilund brought this change]
+
+ ares_process: fix return type of socket_create function (win32 warning)
+
+Daniel Stenberg (31 Jan 2017)
+- [Calle Wilund brought this change]
+
+ ares_set_socket_functions: Add man page
+
+ Providing some rudimentary documentation for the added functionality
+
+ Closes #72
+
+- [Calle Wilund brought this change]
+
+ ares-test: Add test helpers and cases for virtual socket IO
+
+ * Added test case macro to automatically run tests twice, once "normal",
+ once with virtual IO.
+ * Changed most "live" query tests to run in dual mode to verify
+ at least simple socket IO via virtual functions
+ * Added test case for settings/duping socket functions & callback data
+
+- [elcallio brought this change]
+
+ Implement using virtual socket IO functions when set
+
+ Uses virtual socket IO functions when set on a channel.
+ Note that no socket options are set, nor is any binding
+ done by the library in this case, since the client defining
+ these is probably more suited to deal with this.
+
+- [elcallio brought this change]
+
+ Add virtual function set for socket IO
+
+ Defines a structure of basic create, close, read/write
+ functions as virtual function calls, settable for individual
+ c-ares channels.
+
+David Drysdale (30 Jan 2017)
+- test: ignore aresfuzzname binary
+
+Gregor Jasny (14 Jan 2017)
+- [Stephen Sorley brought this change]
+
+ Always use check_symbol_exists instead of check_function_exists.
+
+- Also add includes to TARGETS_INST_DEST
+
+- [Stephen Sorley brought this change]
+
+ Windows build fixes
+
+- CMake: Export targets
+
+- CMake: Use GNUInstallDirs for install location defaults
+
+David Drysdale (11 Jan 2017)
+- Update Makefile.am for renamed INSTALL.md
+
+GitHub (11 Jan 2017)
+- [David Drysdale brought this change]
+
+ docs: convert INSTALL to MarkDown & tweak (#83)
+
+- [Gregor Jasny brought this change]
+
+ Merge pull request #77 from stephen-sorley/cmake_modernize
+
+ Updated CMake minimum version to 2.8.12.
+
+Stephen Sorley (4 Jan 2017)
+- Changed executables to depend directly on internal libcares target, instead of against
+ the external-facing alias targets.
+
+- Updated Travis to pull CMake 2.8.12 from kubuntu-backports ppa.
+
+- Updated CMake minimum version to 2.8.12.
+
+ Changed the way usage requirements (include dirs, compile defs, dependent libraries) are specified, to match the recommended standard practice for modern CMake. This involves using target-specific functions (target_include_directories, target_compile_definitions, etc.), along with the PUBLIC, PRIVATE or INTERFACE modifiers.
+
+ Updated chain-building support to imitate new-style Find modules (import libs), instead of old-style Find modules (cache variables).
+
+David Drysdale (26 Dec 2016)
+- [Chris Araman brought this change]
+
+ configure: clock_gettime workaround (#75)
+
+ Commits 7518c26, c41726b, and bc14ee7 brought this workaround to the CMake build system. This expands it to the autoconf build system.
+
+ Fixes #71
+
+- test: add fuzz entrypoint for ares_create_query()
+
+- test: Add gTest/gMock files to SOURCES
+
+ Built tarballs are not including all of the files needed
+ to build the test suite because they are missing from the
+ <target>_SOURCES variable in Makefile.am.
+
+- travis: Move build scripts under travis/
+
+ Travis doesn't always propagate errors in inline multi-line
+ scripts, so move them all to be explicit shell scripts, each
+ with set -e.
+
+- travis: check distributed tarball builds
+
+Daniel Stenberg (25 Oct 2016)
+- dist: ship msvc_ver.inc too
+
+ Reported-by: Bruce Stephens
+
+ Fixes #69
+
+- [Aaron Bieber brought this change]
+
+ fix build on OpenBSD
+
+- ares_version.h: bump, working on 1.12.1 now
+
+GitHub (18 Oct 2016)
+- [Gregor Jasny brought this change]
+
+ Merge pull request #64 from bradh352/master
+
+ Add CMake build system support to C-Ares.
+
+Brad House (5 Oct 2016)
+- suggested PROJECT_NAME change broke chain building as it needs the magic PROJECT_NAME set in the ADD_LIBRARY for matching. Fix to make both goals work
+
+- update MacOSX 10.12 detection
+
+- Expand XCode clock_gettime fix to include MacOS 10.12, not just iOS10
+
+David Drysdale (4 Oct 2016)
+- Revert "travis: work around bug in PyCParser"
+
+ This reverts commit a24a10a348fc00b8cfd684d91894a1df14880ea9.
+
+- travis: work around bug in PyCParser
+
+ See https://github.com/pyca/cryptography/issues/3187
+
+Brad House (3 Oct 2016)
+- PROJECT_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR as per @gjasny
+
+- use a project name of c-ares as per @gjasny
+
+- Import curl conversion of Makefile.inc to cmake form dynamically as per bdoetsch@ameritech.net to make maintaining multiple build systems easier
+
+Daniel Stenberg (30 Sep 2016)
+- dist: add ares_library_initialized.* to the tarball
+
+David Drysdale (30 Sep 2016)
+- test: check ares_create_query with too-long name
+
+Daniel Stenberg (30 Sep 2016)
+- man pages: minor formatting edits
+
+Brad House (29 Sep 2016)
+- merge fc7917e from @daviddrysdale ... travis build updates for cmake
+
+- cleanups as per @gjasny ... Use naked IF statements and use NOT DEFINED
+
Version 1.12.0 (29 Sep 2016)
Daniel Stenberg (29 Sep 2016)
@@ -17,6 +1804,10 @@ Daniel Stenberg (29 Sep 2016)
Bug: https://c-ares.haxx.se/adv_20160929.html
+Brad House (29 Sep 2016)
+- CMake: Unify library versioning with the libtool methodology to make keeping library versions in sync easier with the autotools build system
+
+Daniel Stenberg (29 Sep 2016)
- ares_library_initialized.3: added
- make: bump CARES_VERSION_INFO for release
@@ -27,6 +1818,24 @@ David Drysdale (29 Sep 2016)
Daniel Stenberg (29 Sep 2016)
- ares_library_init.3: corrected the ares_library_init_mem proto
+Brad House (28 Sep 2016)
+- XCode v8 introduced clock_gettime() for iOS v10. However, it is a weak symbol, which means when earlier iOS versions try to use clock_gettime() it results in a crash due to the missing symbol. Detect this condition and do not set HAVE_CLOCK_GETTIME_MONOTONIC.
+
+- Adds cmake build system support to C-Ares.
+
+ The patch does not modify any source files, it only adds 3 new files
+ (CMakelists.txt, ares_build.h.cmake, ares_config.h.cmake) which form the
+ build system. I've tried to go through as much of the autotools tests and
+ extracted what I thought was appropriate, though many of the tests aren't
+ as in-depth in CMake as they are for autotools ... it is unclear why some
+ of them exist at all, I'm guessing for legacy systems that CMake probably
+ doesn't support anyhow.
+
+ Building the library, and examples (adig, ahost, acountry) plus installation
+ should work across a large number of tested platforms. The tests have not
+ yet been integrated.
+
+Daniel Stenberg (27 Sep 2016)
- README.md: remove space from link
- README: link to the correct c-ares badge!
@@ -3124,845 +4933,3 @@ Yang Tse (8 Jun 2009)
to definition taking place in socket.h instead of time.h
- Fix compiler warning: out of bound access
-
-- fix compilation on AIX
-
-- c-ares' --enable-curldebug adjustments
-
-- Remove temporarily introduced memory leak.
-
-- Temporarily introduce a memory leak to verify curl debug memory tracking works.
-
-- Allow curl debug memory tracking when building a shared library on
- systems which support external, undefined, symbols in shared libraries.
-
-Daniel Stenberg (26 May 2009)
-- language fix
-
-Yang Tse (26 May 2009)
-- Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
- if library initialization has not been performed calling ares_library_init().
-
-- c-ares's --enable-curldebug configure option decoupled from c-ares's --enable-debug
-
-- Prevent copying 'sourced' manpages for build targets that don't use them.
-
-Daniel Stenberg (23 May 2009)
-- minor edits
-
-Yang Tse (21 May 2009)
-- Include .pdf versions of c-ares man pages in distribution tarball.
-
-- Allow generation of .html and .pdf versions of c-ares man pages.
-
-Gisle Vanem (21 May 2009)
-- $(OBJ_DIR)/ares_getopt.o must be cleaned explicitly.
-
-Yang Tse (20 May 2009)
-- Mention last changes
-
-- Initial ares_library_cleanup(3) man page
-
-- Update man page
-
-- Update man page
-
-- Initial ares_library_init(3) man page attempt
-
-- Force revision update, to force CVS to update the $Id date string format
-
-- Add same copyright notice as other c-ares files
-
-- Fix case
-
-- Remove run-time requirement for advapi32.dll since
- c-ares can work even with no advapi32.dll at all.
-
-- Intentionally avoid checking if the address of SystemFunction036, a.k.a.
- RtlGenRandom, has been located or not. This function is only available on
- WinXP and later. When unavailable c-ares uses portable rand() function.
-
-- - Provide in external interface preprocessor symbol definitions for
- CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP
- to ease the use of new capabilities.
-
- - Move ares_version() prototype to ares.h
-
-- Introduction of ares_library_init() and ares_library_cleanup()
-
-- Introduction of ares_library_init() and ares_library_cleanup()
-
-- remove outdated comment
-
-- Fix preprocessor conditional expression
-
-- fiX *__SOCKLEN_T definitions for remaining targets
-
-- *__SOCKLEN_T definitions for OS400 already fixed
-
-- fIX *__SOCKLEN_T definitions for SYMBIAN32 and VMS targets
-
-Daniel Stenberg (11 May 2009)
-- - Gregor Jasny made c-ares link with libtool 's -export-symbols-regex option to
- only expose functions starting with ares_.
-
-Yang Tse (11 May 2009)
-- Remove experimental check. Currently there's no need for it.
-
-- Fix an m4 overquoting triggering a spurious 'AS_TR_CPP' symbol definition
- attempt in generated config.h
-
-- Proper naming for the experimental compiler test and moved to *-compilers.m4
-
-- Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_*
-
-- fIX *__SOCKLEN_T definitions for OS400 and generic GCC targets
-
-- fIX *__SOCKLEN_T definitions for MVS and 370 targets
-
-- fIX *__SOCKLEN_T definitions for several Windows target tool-chains
-
-- HP-UX's X/Open network library requirement check follow-up
-
-- HP-UX's X/Open network library requirement check follow-up
-
-- Use build-time configured ares_socklen_t instead of socklen_t
-
-- David McCreedy's "TPF-platform specific changes to various files" patch follow-up
-
-Daniel Stenberg (1 May 2009)
-- s/libcurl/c-ares
-
-- version number typo fix
-
-Yang Tse (1 May 2009)
-- David McCreedy's "TPF-platform specific changes to various files" patch
-
-- Check definition of _XOPEN_SOURCE_EXTENDED with the compiler
-
-- Check if X/Open network library is required
-
-- cope with ares_build.h and ares_rules.h follow-up
-
-- Added some notes regarding ares_build.h
-
-- fix EOL
-
-- fix EOL
-
-- cope with ares_build.h and ares_rules.h
-
-- buildconf.bat for CVS-tree c-ares
-
-- Use 'unsigned int' instead of size_t attempting to avoid header inclusion
-
-- NetWare LibC's getpeername() third argument data type is size_t
-
-- Remove temporary debug tracing for ares_socklen_t Windows targets
-
-- ares_socklen_t follow-up
-
-- ares_build.h Windows follow-up
-
-- Add temporary debug tracing for ares_socklen_t Windows targets
-
-- ares_build.h NetWare follow-up
-
-- ares_build.h NetWare attempt
-
-- Initial step towards a configure time ares_socklen_t definition
-
-- ignore stamp-h*
-
-- Added CARES_INCLUDES_SYS_TYPES
-
-- Initial step towards a configure time curl_socklen_t definition
-
-- avoid use of alloca()
-
-- Moved potential inclusion of system's malloc.h and memory.h header files to
- setup_once.h. Inclusion of each header file is based on the definition of
- NEED_MALLOC_H and NEED_MEMORY_H respectively.
-
-- ignore
-
-Gisle Vanem (18 Apr 2009)
-- Added '-DHAVE_LIMITS_H'.
-
-Yang Tse (17 Apr 2009)
-- remove compiler options used while debugging the icc 9.1 optimizer issue
-
-- moved HAVE_LIMITS_H to common defines
-
-- Set HP-UX compiler warning level back to the one that exposes
- the socklen_t issue on this platform.
-
-- HAVE_LIMITS_H definition for NetWare CLIB
-
-- use HAVE_LIMITS_H symbol to protect limits.h inclusion
-
-- fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
-
-- s/u_long/unsigned long/
-
-- Do not halt compilation when using VS2008 to build a Windows 2000 target
-
-- ignore
-
-Phil Blundell (3 Feb 2009)
-- * February 3 2009 (Phil Blundell)
- - If the server returns garbage or nothing at all in response to an AAAA query,
- go on and ask for A records anyway.
-
-Daniel Stenberg (31 Jan 2009)
-- - ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolving
- either AF_INET6 or AF_INET. It works by accepting any of the looksups in the
- hosts file, and it resolves the AAAA field with a fallback to A.
-
-Gisle Vanem (18 Jan 2009)
-- fopen() returns error in 'errno' even on Windows.
- So don't use ERRNO (GetLastError()). Trimmed trailing
- blanks.
-
-- Constified some arguments in local functions.
-
-Daniel Stenberg (14 Jan 2009)
-- - ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it
- now declares the private struct ares_in6_addr for all systems instead of
- relying on one possibly not present in the system.
-
-Phil Blundell (13 Jan 2009)
-- - ares__send_query() now varies the retry timeout pseudo-randomly to avoid
- packet storms when several queries were started at the same time.
-
-Daniel Stenberg (11 Jan 2009)
-- - Phil Blundell added the internal function ares__expand_name_for_response()
- that is now used by the ares_parse_*_reply() functions instead of the
- ares_expand_name() simply to easier return ARES_EBADRESP for the cases where
- the name expansion fails as in responses that really isn't expected.
-
-Gunter Knauf (30 Dec 2008)
-- added HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID to ares Makefile.netware and sync'd with other Makefile.netware.
-
-Daniel Stenberg (9 Dec 2008)
-- use the new URL
-
-- start over on the 1.6.1 release...
-
-Version 1.6.0 (9 Dec 2008)
-
-Daniel Stenberg (9 Dec 2008)
-- add space
-
-Gisle Vanem (9 Dec 2008)
-- Fix for Win32 targets using Watt-32.
-
-Dan Fandrich (9 Dec 2008)
-- C89 compilers (like Minix' ACK) only need to handle 31 functions arguments
- so split a long sprintf into two calls to get below that number.
-
-Gisle Vanem (8 Dec 2008)
-- Added needed defines for Watt-32 on Windows.
-
-- Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
- (to get correct linkage on Windows).
-
-- ares_writev() shall not be exported when using Watt-32 (has writev).
- Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to
- VC-2008+ only.
-
-- Removed unneeded defines HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T,
- RETSIGTYPE and HAVE_PROCESS_H.
-
-Daniel Stenberg (4 Dec 2008)
-- the initial version of the ares_set_socket_callback man page
-
-- Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
- and I edited it to also get duped by ares_dup().
-
-Dan Fandrich (4 Dec 2008)
-- Bring the sys/include.h include test in line with curl's.
-
-Daniel Stenberg (3 Dec 2008)
-- Let's not call ares_save_options() deprecated just yet
-
-- Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
- Also discussed on the ml.
-
-Dan Fandrich (2 Dec 2008)
-- Make sure sys/socket.h is included before netinet/in.h (required by
- OpenWatcom C, and condoned by SUS)
-
-Daniel Stenberg (1 Dec 2008)
-- minor indent fix
-
-- Convert the public config struct to the same binary size/construct as in the
- latest releases to remain ABI compatible.
-
-Gisle Vanem (29 Nov 2008)
-- Added '-DHAVE_GETHOSTNAME'.
-
-Dan Fandrich (29 Nov 2008)
-- Make sure sys/socket.h is included before netinet/in.h (required by
- OpenWatcom C)
-
-- Netware has gethostname()
-
-- Fixed a couple of typos
-
-- Don't tweak the HAVE_* macros when using autoconf
-
-- Make use of gethostname() conditional on it being available
-
-- Only set TCP_NODELAY when it exists
-
-Daniel Stenberg (28 Nov 2008)
-- updated with changes, preparing for a release soon
-
-Yang Tse (26 Nov 2008)
-- Gerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a
- buffer to shrink instead of expand if a reply contained 8 or more records.
-
-- Brad Spencer provided changes to allow buildconf to work on OS X.
-
-- In preparation for the upcomming IPv6 nameservers patch, the internal
- ares_addr union is now changed into an internal struct which also holds
- the address family.
-
-Dan Fandrich (20 Nov 2008)
-- Make checking for struct ifreq a prerequisite for setting
- HAVE_IOCTL_SIOCGIFADDR since it's needed to use SIOCGIFADDR and Watcom C
- doesn't currently define it.
-
-Daniel Stenberg (20 Nov 2008)
-- use unsigned short better intead of mixing with ints to prevent compiler
- warnings
-
-- please the picky compilers by staying with short as the data we get is short
- only
-
-- - Brad Spencer brought the new function ares_gethostbyname_file() which simply
- resolves a host name from the given file, using the regular hosts syntax.
-
-Yang Tse (19 Nov 2008)
-- user provided PATH_SEPARATOR always overrides auto-detected one
-
-- attempting to keep lines below 80 chars
-
-- provide a common PATH_SEPARATOR check method which is required by
- upcomming work to support the broadest range of Autoconf versions
-
-- check for gethostbyaddr and gethostbyname as it is done for other functions
-
-- Make configure script check if ioctl with the SIOCGIFADDR command can be
- used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate.
-
-- fix leftover from previous commit
-
-- fix inet_pton() runtime configure check
-
-- trim down configure script size
-
-Daniel Stenberg (15 Nov 2008)
-- Fixed an OOM condition reported by Jim Meyering
-
-Yang Tse (14 Nov 2008)
-- fix typo affecting inclusion of <arpa/inet.h> in configure
- checks for inet_ntoa_r() inet_ntop() and inet_pton()
-
-- #include <string.h> in the getaddrinfo() runtime check for the memset() prototype
-
-- fix symbol definition check for fcntl.h inclusion
-
-- Refactor configure script detection of functions used to set sockets into
- non-blocking mode, and decouple function detection from function capability.
-
-Daniel Stenberg (1 Nov 2008)
-- Added a TODO file to list things we want changed, added or fixed.
-
-- - Carlo Contavalli added support for the glibc "rotate" option, as documented
- in man resolv.conf:
-
- causes round robin selection of nameservers from among those listed. This
- has the effect of spreading the query load among all listed servers, rather
- than having all clients try the first listed server first every time.
-
- You can enable it with ARES_OPT_ROTATE
-
-Yang Tse (1 Nov 2008)
-- Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability
-
-- WIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite
- convoluted, compiler dependant and in some cases even build target dependat.
-
-- check for freeaddrinfo() at configuration phase
-
-- update aclocal file serial number
-
-- remove verification of the freeability of the addrinfo struct pointer members
-
-- fix comment
-
-- make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
- and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
- internal to CHECK_FUNC_GETADDRINFO
-
-- fix leftover
-
-- Initial attempt to detect at configuration time if the getaddrinfo()
- function returns an addrinfo with an unfreeable ai_canonname member ptr.
-
-- Initial attempt to detect at configuration time if the getaddrinfo()
- function returns an addrinfo with an unfreeable ai_addr member ptr.
-
-- icc adjustments:
-
- Select ANSI C89 dialect plus GNU extensions, again.
-
-- some more temporary magic for the icc seg-fault issue
-
-- icc permanent adjustment:
-
- Select precise floating-point model, otherwise doubles are less than 64-bit wide
-
- icc test adjustment:
-
- Select c89 dialect
-
-- icc adjustments:
-
- Enable more icc warnings.
-
- Optimization disabling options used only for icc 9.1
-
-- #include <stdlib.h> for exit() prototype
-
-- some more temporary magic for the icc seg-fault issue
-
-- remove from configure.ac temporary magic for the icc seg-fault issue
-
-- some more temporary magic for the icc seg-fault issue
-
-- Charles Hardin patch:
-
- - handles the EINPROGRESS for UDP connects
- - uses closesocket instead of close on some paths that were noticed
-
-- some more temporary magic for the icc seg-fault issue
-
-- messages initially intended only for debug purposes, now become permanent
- since these are extremely useful when compiler rejects a set of options.
-
-- fix compiler warning
-
-- fix missing double-quotes
-
-Daniel Stenberg (17 Oct 2008)
-- Charles Hardin made adig support a regular numerical dotted IP address for the
- -s option as well.
-
-Yang Tse (16 Oct 2008)
-- some more temporary magic for the icc seg-fault issue
-
-- Ensure that shell variable contents which have active meaning
- to the shell echo command are not interpreted when trying to
- remove extra whitespace from shell variable content.
-
-- Adjust Watcom C warnings:
-
- Disable warnings on structure members padding.
-
-- With this change Solaris target builds will now be done with _REENTRANT defined.
-
-- Adjust Tiny C basic options:
-
- Remove -b from debug-enabled configuration, as Tiny C might have
- been built without the memory and bounds checker support.
-
-- Adjust GCC warnings:
-
- Better disable following warnings when cross-compiling with a gcc older
- than 3.0, to avoid warnings from third party system headers:
-
- -Wmissing-declarations
- -Wmissing-prototypes
- -Wunused
- -Wshadow
-
-- fix syntax error
-
-- Initial attempt to detect Watcom C compiler
-
-- make naming scheme more consistent across whole file
-
-- Adjust GCC warnings:
-
- Disable following warnings when cross-compiling with a gcc older
- than 3.0, to avoid warnings from third party system headers:
-
- -Wmissing-prototypes
- -Wunused
- -Wshadow
-
-- Adjust GCC --enable-warnings:
-
- Do not enable -pedantic when cross-compiling with a gcc older
- than 3.0, to avoid warnings from third party system headers.
-
-- adjust SGI MIPSpro C detection
-
-- LCC compiler adjustments:
-
- Highest warning level is double -A, next is single -A.
- Due to the big number of warnings these trigger on third
- party header files it is impratical for us to use any of
- them here. If you want them simply define it in CPPFLAGS.
-
-- remove extra space
-
-- split SGI compiler check. One for MIPS C and another for MIPSpro C
-
-- LCC compiler adjustments:
-
- Warning level reduced from double -A to single -A
-
-- Initial attempt to detect Tiny C compiler
-
-- Initial attempt to detect LCC compiler
-
-- 1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
-
- 2) Disable SGI remark: controlling expression is constant
-
-- simplify SGI C compiler check
-
-- HP C adjustments:
-
- Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
- It generates more than 1100 warnings on socklen_t related statements.
-
- Until the issue is somehow fixed we will just use the +w2 warning level.
-
-- Add debug tracing for COMPILER_WORKS_IFELSE
-
-- configure will also warn on 'strict compiler warning' rejected options
-
-- convert rejected compiler options messages into a warnings
-
-- remove extra whitespace from string in SGI C check
-
-- oops
-
-- Initial attempt to detect SGI C compiler
-
-- HP C adjustments:
-
- Disallow run-time dereferencing of null pointers.
-
- Disable some remarks:
-
- #4227: padding struct with n bytes to align member.
-
- #4255: padding size of struct with n bytes to alignment boundary.
-
-- improve presentation of accepted/rejected debug/optimizer options
-
-- refactoring of COMPILER_BASIC_OPTS
-
-- Initial attempt to detect SUN C compiler
-
-- Initial attempt to detect HP C compiler
-
-- fix compiler warning: 'dot_4' may be used uninitialized in this function
-
-- adjust ICC_windows settings
-
-- fix VAR_STRIP
-
-- Sync up with reality
-
-- Initial attempt to support configure's --(dis|en)able-optimize
- option to specify dis(activation) of compiler optimizations.
-
- If option is specified, it will be honored independant of the
- --(dis|en)able-debug option.
-
-- fix comment
-
-- Initial attempt to support configure's --(dis|en)able-warnings
- option to specify dis(activation) of picky compiler warnings.
-
- If option is specified, it will be honored independant of the
- --(dis|en)able-debug option.
-
- If option is not specified, it will follow --(dis|en)able-debug
- setting, whose default is disabled if not specified.
-
-- fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
-
-- now compiler warnings are activated for all gcc builds, not only debug ones.
-
-- Use CFLAGS for icc linker options instead of LDFLAGS,
- otherwise gethostbyname() is not detected.
-
-- use ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number
-
-- Temporary icc adjustment:
-
- Disable floating point optimizations
-
-- HAVE_INET_PTON will only be defined when an IPv6 capable working
- inet_pton function is available.
-
-- HAVE_INET_NTOP will only be defined when an IPv6 capable working
- inet_ntop function is available.
-
-- ntoa() and inet_ntoa_r() no longer used
-
-- icc adjustments for icc 9.0 and prior versions:
-
- Disable remark #279: controlling expression is constant
-
- Remark triggered mostly on va_arg() and FD_ZERO() macros.
-
-- attempt to make work the gethostname function
- check for winsock build target configurations
-
-Gisle Vanem (21 Sep 2008)
-- Added HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP
- and HAVE_STRNCASECMP.
-
-Yang Tse (19 Sep 2008)
-- icc adjustments:
-
- Disable remark #981: operands are evaluated in unspecified order
-
- Function calls which are triggering this remark, today, do not depend
- on the order of evaluation of its arguments.
-
- Disable remark #1469: "cc" clobber ignored
-
- Remark triggered on htons() and ntohs() due to glibc header files.
-
-- icc adjustments
-
-- fix netdb.h prerequisite inclusion
-
-- improve detection of getservbyport_r()
-
-- On Linux Intel's icc uses gcc's header files, so
- we select ANSI C89 dialect plus GNU extensions.
-
-- improve detection of gethostname()
-
-- NetWare builds include "nameser.h" from the c-ares subdir
-
-- include <strings.h>
-
-- Sync up with reality
-
-- adjust inclusion of "nameser.h"
-
-- reorder some lines in file
-
-- code cleanup
-
-- NetWare seems to have writev()
-
-- rearrange to allow internal/private use of ares_writev to any system
- that lacks the writev function.
-
-- NetWare CLIB target has stricmp() and strnicmp()
-
-- include header file only when available
-
-- rearrange to allow internal/private use of ares_strcasecmp to any system that
- lacks the strcasecmp function.
-
-- improve detection of:
- strcasecmp()
- strcmpi()
- stricmp()
- strncasecmp()
- strncmpi()
- strnicmp()
-
-- *** empty log message ***
-
-Gisle Vanem (12 Sep 2008)
-- djgpp does have strdup().
-
-Yang Tse (12 Sep 2008)
-- change CRLF into LF line endings
-
-- strdup() clone for systems/configurations which lack it
-
-- move inclusion of ares_private.h last
-
-- icc adjustments
-
-- icc adjustments
-
-- Select strict ANSI C89 conformance for icc
-
-- remove unnecessary typecasting of malloc()
-
-- remove unnecessary typecasting of realloc()
-
-Daniel Stenberg (29 Aug 2008)
-- we start over working towards 1.5.4
-
-Version 1.5.3 (29 Aug 2008)
-
-Daniel Stenberg (29 Aug 2008)
-- Version 1.5.3
-
-- added the three people from RELEASE-NOTES and sorted the list alphabetically
-
-Yang Tse (27 Aug 2008)
-- Don't abort configuration if recvfrom() is not available.
-
-- Functionality only possible if recvfrom() is available.
-
-- George Neill's fix acountry sample application compilation failure.
-
-- Brad House's validation that DNS response address matches the request address
-
-- fix the output name
-
-- Get rid of ENABLE_64BIT symbol definition and usage.
-
- Improve HAVE_LONGLONG symbol description.
-
-- Export 'ares_process_fd' too.
-
-Gisle Vanem (16 Aug 2008)
-- Ops, remove 'use_vc'.
-
-- Support Watt-32 under Win32.
-
-Yang Tse (10 Aug 2008)
-- Fix: Remove now this SIZEOF_CURL_OFF_T symbol definition.
-
- This should have been done with the initial 64-bit curl_off_t patch.
-
-- Improve CURL_CHECK_DEF
-
-- Fix IBM C and DEC/Compaq C compiler detection
-
-- Initial support of curlbuild.h and curlrules.h which allows
- to have a curl_off_t data type no longer gated to off_t.
-
-- The minimum autoconf version required for this file is 2.50
-
- Avoid dot notation in aclocal serial file number, use a single number now.
-
-Daniel Stenberg (4 Aug 2008)
-- - Fix by Tofu Linden:
-
- The symptom:
- * Users (usually, but not always) on 2-Wire routers and the Comcast service
- and a wired connection to their router would find that the second and
- subsequent DNS lookups from fresh processes using c-ares to resolve the same
- address would cause the process to never see a reply (it keeps polling for
- around 1m15s before giving up).
-
- The repro:
- * On such a machine (and yeah, it took us a lot of QA to find the systems
- that reproduce such a specific problem!), do 'ahost www.secondlife.com',
- then do it again. The first process's lookup will work, subsequent lookups
- will time-out and fail.
-
- The cause:
- * init_id_key() was calling randomize_key() *before* it initialized
- key->state, meaning that the randomness generated by randomize_key() is
- immediately overwritten with deterministic values. (/dev/urandom was also
- being read incorrectly in the c-ares version we were using, but this was
- fixed in a later version.)
- * This makes the stream of generated query-IDs from any new c-ares process
- be an identical and predictable sequence of IDs.
- * This makes the 2-Wire's default built-in DNS server detect these queries
- as probable-duplicates and (erroneously) not respond at all.
-
-Yang Tse (4 Aug 2008)
-- Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
- Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But,
- autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four
- preprocessor symbols no matter if the system is AIX or not. To keep the
- traditional behaviour, as well as an uniform one, across autoconf versions
- AC_AIX is replaced with our own internal macro.
-
-- Adjust DEC/Compaq C compiler settings.
-
-- Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
- Proper definition of HAVE_function if function is found deeper.
-
-- Sync up with reality
-
-- Rename reentrant.m4 to avoid filename clash.
-
-- Add file version serial number that might be used by 'aclocal' and others.
-
- Keep the '#' character as the first one on the line.
-
-- Update copyright year.
-
-- Sync comment with reality.
-
-- Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
- including our local m4/reentrant.m4 file. This even takes care of including the
- file in the distribution tarball.
-
-- Add quoting for the AC_DEFINE arguments.
-
-- Also remove the whitespace.
-
-- Also remove the extra quoting.
-
-- Replace some '@%:@' quadigraphs by its actual representation '#'.
-
- This quadigraph used before a C preprocessor 'define' directive could
- be fooling M4, when processing this file, and make it think that the
- line contains a pure M4 'define' macro.
-
-- Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4
- in top Makefile.am triggered a problem that prevented aclocal from running
- successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61
-
- A tarball which reproduces mentioned problem is the one dated July-28-2008
- http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz
-
- We actually don't need all the bells and whistles that the above mechanism
- provides. We only need to include our m4/reentrant.m4 file in acinclude.m4
- so here we go with this simpler mechanism.
-
-- for debugging purposes show ACLOCAL_FLAGS
-
-- These lines were unintentionally removed in previous commit
-
-- Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf.
-
-- Assert that SED and GREP are set
-
-- Require autoconf 2.57 or newer
-
-- When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours.
-
-- move ACLOCAL_AMFLAGS after AUTOMAKE_OPTIONS
-
-- setup.h handles definition of _REENTRANT based on NEED_REENTRANT
- definition which might be defined in config.h or config-*.h files
-
-- Remove explicit inclusion of our m4 files first. It was interesting as a test,
- but it breaks aclocal execution on some systems, with the following error:
-
- Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256.
-
-- Another step towards detecting if _REENTRANT is already defined or actually
- needed, and being able to define it if appropriate for further configure tests
- as well as for the generated config file.
-
-- Explicitly include our m4 files first. This might minimize the impact
- that other package's underquoted m4 function definitions have on ours.
-
-- Add a 3 argument check for getprotobyname_r