chiark / gitweb /
src/types.c: Do not crash when one of several addr subqueries fails
[adns.git] / changelog
1 adns (1.5.1~~) unstable; urgency=low
2
3   * Portability fix for systems where socklen_t is bigger than int.
4   * Fix for malicious optimisation of memcpy in test suite, which
5     causes failure with gcc-4.1.9 -O3.  See Debian bug #772718.
6   * Fix TCP async connect handling.  The bug is hidden on Linux and on most
7     systems where the nameserver is on localhost.  If it is not hidden,
8     adns's TCP support is broken unless adns_if_noautosys is used.
9   * Fix addr queries (including subqueries, ie including deferencing MX
10     lookups etc.) not to crash when one of the address queries returns
11     tempfail.  Also, do not return a spurious pointer to the application
12     when one of the address queries returns a permanent error (although,
13     the application almost certainly won't use this pointer because the
14     associated count is zero).
15
16  --
17
18 adns (1.5.0) UPSTREAM; urgency=low
19
20   * Release 1.5.0.  No changes since 1.5.0~rc1.
21
22  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sun, 26 Oct 2014 14:57:10 +0000
23
24 adns (1.5.0~rc1) UPSTREAM; urgency=low
25
26   ABI/API changes:
27   * Provide adns_qf_cname_strict flag, currently ignored because it's the
28     default.  This will allow us to make this not the default in the future
29     while retaining forward and backward API and ABI compatibility.
30   * Add `sizeforce' enum member value to force enum types in the APIs to be
31     big (which will avoids theoretical future ABI-incompatibility).
32   * Reject unknown flags passed by our caller.  This will make it ABI-safe
33     (although not ABI-backward-compatible) to add new flags in the future,
34     as newer clients running against this old library will get ENOSYS.
35
36   resolv.conf parsing:
37   * Support `adns_ignoreunkcfg' resolv.conf option to ignore unknown
38     options and keywords in resolv.conf.
39   * Ignore various BIND9 resolv.conf keywords and options.
40   * Fix resolv.conf option word splitting.
41
42   Tests, build system, coding style, etc.:
43   * Test cases show rrtype flag values in hex.
44   * Parallelise `make check'.
45   * Make vbuf__append_quoted1035 no longer extern (there are no out-of-file
46     callers).
47   * Remove all RCSids.
48   * When releasing, check that the `make dist' tarball is identical to git.
49     And provide a test mode for the RELEASE-CHECKLIST doc/script.
50   * Add `make dist' tarball signature to .gitignore.
51   * More correctly and effectively work around bugs in make (Debian #4073,
52     #756123) affecting regress.
53
54  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sun, 26 Oct 2014 13:24:00 +0000
55
56 adns (1.5.0~rc0) UPSTREAM; urgency=low
57
58   New features:
59   * Support for queries about IPv6 data in all applicable adns
60     query types (including AAAA, PTR, and adns_r_addr queries).
61     (Thanks very much to Mark Wooding.)
62   * Support for transport over IPv6.  (Thanks to Mark Wooding again.)
63   * adns_addr2text and adns_text2addr: Convenient functions for
64     converting between addresses and address literals.
65
66   Bugfixes:
67   * Fix a crashing bug in adnslogres.  (Debian#392102.)
68   * Do all checks of checked PTR owner name before actually sending the
69     query, and reject IPv4 PTR owner names whose labels have leading zero
70     digits or values >255.
71
72   Build system fixes and improvements:
73   * `make clean' removes the pipes.
74   * Work around bugs in make (Debian #4073, #756123) affecting regress.
75   * Do not include Makefile and src/config.h in distribution tarball.
76
77   Regression test debugging improvements:
78   * Provide gdbwrap convenience script.
79   * Honour ADNS_TEST_DEBUG env. var.  (Mark Wooding.)
80
81   Other improvements:
82   * Licence changed to GPLv3 (still LGPLv2 for adns.h).
83   * Source code cleanups.  (Some from Mark Wooding.)
84   * Now in git.
85   * Documentation and webpage updates.
86
87  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Mon, 20 Oct 2014 01:29:50 +0100
88
89 adns (1.4); urgency=low
90
91   Improvements for multithreaded programs:
92   * New documentation comment in adns.h explaining thread guarantees
93     (or lack of them), replaces `single-threaded' note at the top.
94   * Fix string conversion of adns_r_addr not to use a static buffer
95     (function csp_addr) so as to make thread promise true.
96   * Make an internal variable const-correct (expectdomain in pa_ptr).
97
98  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue, 17 Oct 2006 17:05:08 +0100
99
100 adns (1.3); urgency=low
101
102   Portability fixes:
103   * Cast ptrdiff_t to int for %.*s length in adnsheloex and adnslogres,
104     as is required.  (Report from Jim Meyering.)
105   * In configure.in, quote macro name argument to define() to
106     suppress spurious autoconf error.  (Report from Mihai Ibanescu.)
107   * Use autoconf's values for {bin,lib,include}dir rather than inventing
108     our own from @exec_prefix@, making configure --libdir work.
109     (Patch from Mihai Ibanescu.)
110   * Remove spurious `_' from {bin,lib,include}dir Makefile variables.
111     (Report from Mihai Ibanescu.)
112   * Do away with `mismatch' variable in parse.c:adns__findrr_anychk so that
113     overzealous GCC cannot complain about members of eo_fls being
114     uninitialised.  (Report from Jim Meyering.)
115
116  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue,  6 Jun 2006 20:22:30 +0100
117
118 adns (1.2); urgency=medium
119
120   New features:
121   * Support for SRV RRs.
122   * Support for unknown RR types (according to RFC3597) via adns_r_unknown.
123   * Allow `;'-comments in resolv.conf (report from Colin Charles).    
124   * New adnsheloex client courtesy of Tony Finch.
125   * New adns_init_logfn etc. for having logging use a callback function.
126
127   Bugfixes:
128   * Fix error in prototype in definition of adns__parse_domain.
129   * Add missing ENOTSOCK to hcommon.c.m4 (was already in hcommon.c!)
130
131   Portability fixes prompted by Bernd Eckenfels, the Debian maintainer:
132   * Correct type of various printf arguments: ptrdiff_t != int.
133   * Do not print size of leaked blocks of memory (this causes
134     a spurious regression test failure on some platforms).
135   * Provide adns_if_none and adns_qf_none (which will help with compilers
136     which complain about plain `0' being passed where an enum is wanted).
137   * adnstest converts some errno values to EFOOBAR: all of the ones
138     mentioned in adns.h, at least.  This makes the regression test
139     more portable (fixes problem noticed by Bernd Eckenfels).
140   * Add -Wno-pointer-sign if GCC has that option.
141
142   Documentation improvements:
143   * Add documentation comment by definition of adns_r_ptr_raw type enum.
144   * Document in adns.h EINVAL from adns_init meaning bad configuration.
145   * Include several new references to related programs to README.html.
146   * Redacted the TODO list.
147   * New LICENCE.WAIVERS file for GPL-incompatility workarounds.
148   * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary.
149   * Copyright notices updated.
150
151   Packaging changes:
152   * Update MINOR to 2 and DISTVERSION and ADNS_VERSION_STRING to 1.2.
153   * Reran autoconf/autoheader (autoconf Debian 2.13-54).
154   * Create $(bin_dir) and $(lib_dir) on `make install', and also
155     make a libadns.so.1 -> libadns.so.1.<minor> link.  (Suggestions
156     and patch from Nix of esperi.org.uk.)
157   * Add .PHONY: install to Makefile, to help people with demented fs's.
158   * Darwin listed in INSTALL.
159
160   Minor test harness improvements:
161   * Hgettimeofday calls Tensurerecordfile (was Tensureinput/outputfile).
162   * Add bind(2) and listen(2) wrappers (for epithet, but harmless in adns).
163
164  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sat,  8 Apr 2006 15:41:28 +0100
165
166 adns (1.1); urgency=medium
167
168   Major bugfixes:
169   * Do not spin if connect() fails immediately (!)
170   * Stop searching on a CNAME (even if it's broken).
171   * When search list runs out, _qf_owner sets owner to query domain.
172   * Fix bogus multiple updates to p in transmit.c (!)
173
174   Portability improvements:
175   * Fix up spurious #undef's in hredirect.h.
176   * Don't use <sys/select.h> any more, it was a mistake made in pre-1.0
177     (and there doesn't seem to be much explanation why).
178   * Understand and sort of check OpenBSD `lookup' resolv.conf directive.
179   * #include <stdlib.h> in internal.h (for abort etc).
180   * Always #include <sys/types.h> before <sys/socket.h> (for FreeBSD 4.6).
181
182   Cosmetic and documentation improvements:
183   * Added wishlist entry re configurable port no.
184   * Problem with SERVFAIL in TODO.
185   * README.html: mentioned Jarle Aase's Windows port, and other fixes.
186   * Some better source code formatting/wrapping.
187
188  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue,  1 Jul 2003 22:55:29 +0100
189
190 adns (1.0); urgency=medium
191
192   Bugfixes:
193   * Treat 8-bit characters in email addrs as RFC822 `special' (=> quote).
194   * Fix incorrect `compressed datagram contains loop' error.
195   * Actually compile shared libraries by default !
196   * Fix adnsresfilter usage message to include correct default timeout.
197
198   General improvements:
199   * adnshost, adnslogres, adnsresfilter have options for config override. 
200   * adnsresfilter has --debug option.
201   * Improvements to adnslogres (incl. new -c option) from Tony Finch.
202   * adnslogres has --help option, all utilities support --version.
203   * Documentation improved somewhat, including new GPL-vs-LGPL file.
204
205   Changes for non-BETA release:
206   * Change shared library soname to 1.0.
207   * Do not install adnstest test utility.
208
209   Regression test improvements:
210   * Tests now include adnshost, adnslogres and adnsresfilter.
211   * Test cancellation both before and after query completion.
212
213   Portability fixes and cleanups:
214   * adnstest: setvbuf(stdout,...) before we do first output.
215   * Cope with compilers that don't do `inline'.
216   * Add and fix various missing system #includes.
217   * Find install-sh properly when we need to use it, and chmod it +x.
218   * Do not use variadic macro, use stdarg instead (adnslogres.c).
219   * Regression tests work even if some syscalls are already macros.
220   * #include "config.h" before "adns.h".
221   * Cast a sizeof(...) in src/event.c to unsigned long before printing.
222   * Add pre-generated versions of m4-generated files in regress/.
223   * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ...
224   * Add extra {...} near adnslogres.c:167 to kill spurious warning.
225   * Use `printf' instead of `echo -n'.
226   * Add list of tested platforms in INSTALL file.
227
228  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sun, 17 Sep 2000 15:15:58 +0100
229
230 adns (0.9) BETA; urgency=high
231
232   Bug fixes:
233   * Don't make _processany always kill the TCP connection with the message
234     `TCP connection failed: poll/select: exceptional condition detected'.
235   * Call MEM_ROUND in __transfer_interim (avoids assert fail
236     `qu->interim_allocd>=0' on some platforms eg 64 bit).
237   * adnsresfilter doesn't resolve textual prefixes of addresses (eg,
238     10.0.0.1 out of 10.0.0.123) if input happens to block at that point.
239   * Do not spin if TCP connection blocks for writing (and add test case).
240   * Fail queries if TCP dies repeatedly, rather than retrying many times.
241   * Do not abort in a couple of places if TCP unexpectedly broken.
242   * Do not free something twice if query fails and is then cancelled.
243
244   Portability/compilation fixes:
245   * Move `extern "C" {' to after #include <...>'s.
246   * Pass LDFLAGS from configure on to ld via settings.make.in.
247   * make clean deletes *.so and *.so.* files.
248   * New --disable-dynamic configure option for non-ELF systems.
249   * Use AC_PROG_INSTALL (=> perhaps install-sh), to avoid bad `install'.
250
251   Minor improvements:
252   * Do not print warning if sendto() gives EAGAIN.
253   * adnsresfilter default timeout changed to 1000ms.
254   * m1test script can invoke `hrecord' differently.
255   * regress/output-<case>.report file contains more useful info.
256   * TODO list and other docs updated slightly.
257   * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings,
258     just debug messages.  BIND does this kind of thing all the time.
259
260  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed,  9 Aug 2000 16:59:28 +0100
261
262 adns (0.8) BETA; urgency=medium
263
264   Bugfixes:
265   * Race near adns_beforeselect which could cause infinite timeout fixed
266     (it's now less agressive, and will more often return a zero timeout.)
267   * Fixed infrequent race causing assertion failure in adns__tcp_broken
268     `ads->tcpstate == server_connecting || ads->tcpstate == server_ok'.
269   * Spurious `server failure on unidentifiable query' warning suppressed.
270   * If we get a referral, don't also always complain falsely about RD==0.
271   * adnslogres: cast chars to unsigned char before using ctype.h macros.
272   * In _beforeselect, global failure now means zero timeout, and in
273     tcp_events, really never try to do anything with the TCP connection if
274     act is zero.  This might possibly cause an infinite delay (ie, lockup)
275     if things go badly wrong *and* a really unlikely race happens.
276   * Test suite `lines of syscall left' value is correct; !0 is failure.
277
278   Portability fixes:
279   * install-sh (from autoconf 2.12 Debian r13) included.
280   * adnslogres: do not call equivalent of printf("%.*s",0,(char*)0).
281
282   Documentation improvements:
283   * Security/performance note added, about local nameservers and DNSSEC.
284   * Documented that adns_rr_info _rr_hostaddr ( ) for address list
285     means permanent failure, and ? means temporary failure.
286   * Typo (*now for now in _beforeselect description) in adns.h fixed.
287   * Copyright notices updated.
288   
289   Changes to produce more defensive code:
290   * In adns_wait, assert that the timeout is not infinite.
291   * Make qu->id start out as -2 when initially allocated.
292
293  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sun,  7 May 2000 23:37:13 +0100
294
295 adns (0.7) BETA; urgency=medium
296
297   * New adns_submit_reverse_any for eg RBL lookups, and corresponding
298     option to adnshost.
299   * README updated (from www home page).
300
301   * In answers, quote all except alphanums and - _ / + (and document).
302   * Don't reject specials in cnames even without adns_qf_quotefail_cname.
303   * Better checking of long domain names and labels in queries.
304   * answer->owner may be null on error.  Documented, and adnshost copes.
305   * Better reporting of unexpected or weird replies from nameserver.
306   * Add test case for recursion (infinite loop) domain compression.
307
308  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu,  2 Mar 2000 01:55:53 +0000
309
310 adns (0.6) BETA; urgency=high
311
312   Core library bugfixes:
313   * Avoid infinite timeouts, causing lockup, when they should be zero !
314   * TCP handling revamped (avoids undefined behaviour due to reentrancy).
315   * Do not fail assertion if _qf_owner, _qf_search, domain ends in `.'.
316   * Many memory leaks fixed.
317
318   Cool new utility:
319   * adnsresfilter is like `cat' but converts addresses to names without
320     delaying the output.  Pipe `netstat -n', `tcpdump -ln', etc. into it.
321
322   Test and client program bug and portability fixes:
323   * Dynamic library building works properly.
324   * adnshost prints somewhat better messages about some wrong usages.
325   * Include <stdlib.h> and <sys/types.h> in adnshost.h.
326   * adnslogres: parsing and error checking improved (Tony Finch).
327   * Regression tests can cope with zero-length reads.
328   * Regression tests check for memory leaks.
329   * adnstest copes with empty query type list.
330   * adnstest uninitialised memory bug fixed.
331
332   General improvements
333   * Better control of adnshost output and error messages (new -F options).
334   * New adns_if_logpid option (functionality suggested by Tony Finch).
335   * New fanftest test program from Tony Finch (ignored by `make install').
336   * Reads /etc/resolv-adns.conf if it exists.
337   * Declare flags parameters as enums again, not ints.
338
339  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed, 24 Nov 1999 17:13:03 +0000
340
341 adns (0.5) unstable; urgency=high
342
343   New features:
344   * adnslogres, ~100x faster replacement for Apache logresolve;
345     Thanks to Tony Finch for the program and the performance figure.
346   * Internal consistency checking with assert if right options set.
347   * adns_wait_poll function like adns_wait but uses poll, not select.
348   * adns_reverse_submit function for easy in-addr queries.
349   * adns_errtypeabbrev funcion for getting eg "permfail" from _s_nodata.
350   * adnshost utility for scripts and the like (rather alpha).
351
352   Incompatible changes:
353   * RRs with mailboxes never rejected due to strange chars if _raw.
354   * Lack of a mailbox produces `.' not `<>'.
355   * Better usage messages (and no default query domain) for adnstest.
356   * Return EAGAIN from _check instead of EWOULDBLOCK.
357   * adns_rr_info on _r_mx etc. shows status type abbrev and status number.
358   
359   Bugfixes:
360   * Do not invoke __autosys indirectly from __procdgram (result: coredump
361     usually in memmove, unless adns_if_noautosys was used).
362   * Do not scramble innards when a query on the output queue is cancelled.
363   * Do not close tcp socket twice.
364   * Mailboxes containing spaces in their names are quoted.
365   * Give ESRCH, not EAGAIN, if _check called with no queries outstanding.
366   * adns_rr_hostaddr naddrs is -1 on temporary failure (as documented).
367   * Reject TXT RRs with no strings.
368   * Correct error messages for qname CNAME foo, foo CNAME bar.
369   * adns_processany actually does something.
370   * Fixed typos in adns.h.
371
372   General improvements:
373   * Promise not to change fds in adns_beforepoll (if now is specified).
374   * Improved textual error string for _s_prohibitedcname.
375   * New comment in adns_processany and return 0 (not r which is 0).
376   * Documentation of resolv.conf directives and options, and of environment
377     variables understood, in adns.h
378   * Regression test scripts set EF_DISABLE_BANNER (for Electric Fence).
379
380   Portability and build improvements:
381   * Give install the '-c' flag (otherwise some delete the original !).
382   * Do not remove top-level Makefile on `make clean'.
383   * Don't complain so much about poll(2) tests if not available.
384   * Do not give -u 0 -g 0 options to install.
385   * Remove trailing , from some enums in adns.h.
386   * Dynamically linked clients now made with -l, so as to avoid rpath.
387   * Do not use $^ in make rules (should help with non-GNU make).
388   * Declare flags parameters as ints not enums because C++ is crap.
389
390  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed, 13 Oct 1999 02:24:35 +0100
391
392 adns (0.4) unstable; urgency=high
393
394   General important bugfixes:
395   * make _qf_owner work if _qf_search not specified, and test it (oops!)
396   * ads->configerrno now initialised (in setup.c).
397   * timercmp(,,<=) doesn't work - use !timercmp(,,>).
398   * Changed memory semantics of internal queries to fix bugs.
399   * Restarting a TCP-using query (eg due to CNAME) doesn't abort.
400   
401   Fixes for handling of broken kinds of reply:
402   * Only accept a reply from the subset of servers we sent the query.
403   * Ignore CNAME(s) in answer after RR(s) (and test).
404
405   Other bugfixes and improvements:
406   * adns_s_systemfail is in table of errors (for eg adns_strerror).
407   * Do not ship config.cache, Makefile, etc.
408   * Improvements to install instructions, TODO, etc.
409   * Regression tests compile on systems without poll(2).
410   * Do not install adnstest_s.
411   * _submit returns ENOSYS, not adns_s_unknownquery; documented, tested.
412   * <adns.h> includes <sys/types.h>, <sys/time.h>, <unistd.h>.
413
414  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 5 Aug 1999 01:17:38 +0100
415
416 adns (0.3) unstable; urgency=low
417
418   Incompatible changes:
419   * Low adns_status values (below adns_s_max_tempfail) renumbered to make
420     room for future locally-induced and locally-detected errors.
421   * Event loop functions for use by select(2) renamed and tidied up.
422   
423   Features / improvements:
424   * New adns_errabbrev() for getting status abbreviation strings.
425   * regress/checkall prints summary list of failed tests, if any.
426   * Event loop functions for poll(2), and some raw variants.
427   * adnstest has ability to use poll(2), and user can set initflags.
428   * checkall prints passed list as well as failed list, if any failed.
429   * You can iterate over outstanding queries (but only once at a time).
430   
431   Bugfixes:
432   * Non-RFC822 mailbox `domain' formatting now works, and clarified.
433   * Rejection of bad characters in domains (without quoteok) works.
434   * Clean up parents from adns->childw (otherwise would abort/segfault).
435   * In adnstest, allocate enough space for, and terminate, query types.
436   * In adnstest, don't print errno values as adns_status values.
437  
438   * Added TODO file.
439   * Made adnstest.c test context pointers.
440
441  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 15 Jul 1999 00:23:12 +0100
442
443 adns (0.2) experimental; urgency=low
444
445   Portability fixes for compilation on various platforms:
446   * Include <sys/socket.h> and <netinet/in.h> in files with <arpa/inet.h>.
447   * Don't use GCC union assignment feature (.rrs=0 => .rrs.untyped=0).
448   * Explictly cast things to [const] struct sockaddr* in syscall args.
449   * Check whether we need -lsocket.
450   * Include <sys/times.h> in a few more files.
451   * Include <unistd.h> and <sys/time.h> for select.
452   * Look for inet_aton and inet_ntoa (in -lnsl and -lsocket).
453   * LDLIBS removed from dependency lists (some makes don't support this).
454   * An `ambiguous else' warning from some compilers in types.c is removed.
455
456   Other changes:
457   * Added COPYING (copy of the GPL).
458   * Regression test failure output improved.
459   * Missing targets in regress/Makefile.in added.
460   * Regression test doesn't rely on value of fcntl flags eg O_NONBLOCK.
461
462  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 20 May 1999 00:27:32 +0100
463
464 adns (0.1) experimental; urgency=low
465
466   * Initial public alpha release.
467
468  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sat, 17 April 1999 17:42:19
469
470 Local variables:
471 mode: debian-changelog
472 fill-column: 75
473 End: