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