Home | History | Annotate | Download | only in resolv
History log of /src/lib/libc/resolv/res_query.c
RevisionDateAuthorComments
 1.18  24-Aug-2024  christos Not a bug, but avoid using a possibly negative index anyway (CID-603941)
 1.17  01-Aug-2023  mrg branches: 1.17.2;
convert explicit length check before unchecked snprintf() with just a
overflow checked snprintf(). for res_debug.c and res_query.c, convert
from sprintf() to snprintf().

tested scp and rcp fail properly with too-long paths.
tested getaddrinfo fails as expected for too-long domains.
tested dig and ping for similar (res_debug.c/res_query.c).
created a temporary fs with quotas to test edquota with a long EDITOR.
did not test ypserv directly, but it's the same pattern.

avoids GCC 12 snprintf() warnings, and reduces total code size.
 1.16  24-Feb-2015  christos belated removal of the advertising clause.
 1.15  16-Sep-2014  christos close on exec hostaliases
 1.14  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.13  24-Oct-2009  christos branches: 1.13.6;
don't read hostaliases using unbuffered reads. there is no security benefit.
 1.12  12-Apr-2009  christos merge libbind and bump.
 1.11  21-Jun-2008  christos branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; 1.11.14;
- protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.
 1.10  21-Jun-2008  christos updates from bind-9-5-0
 1.9  30-Mar-2007  ghen branches: 1.9.12;
Resolve conflicts.
 1.8  27-Jan-2007  christos merge in resolver portion of bind-9.4.0-rc2
 1.7  24-Jan-2006  christos branches: 1.7.4; 1.7.6;
don't re-define DEBUG
 1.6  25-Sep-2004  christos Put back issetugid() check for hostaliases.
XXX: this is suboptimal, It would be better if we propelry checked
for access.
 1.5  21-May-2004  christos disable weak aliases for now; the resolver header file adds __ to all the
names.
 1.4  21-May-2004  christos namespace protection for resolver routines.
 1.3  20-May-2004  christos netbsd rcsid.
 1.2  20-May-2004  christos add casts to silence lint.
 1.1  20-May-2004  christos branches: 1.1.1;
Initial revision
 1.1.1.4  12-Apr-2009  christos libc portion of libbind from external/bsd/libbind
 1.1.1.3  30-Mar-2007  ghen Import bind 9.4.0.
 1.1.1.2  27-Jan-2007  christos import resolver portion of bind-9.4.0-rc2
 1.1.1.1  20-May-2004  christos Import libc portion of the resolver from bind9
 1.7.6.1  03-Jun-2007  wrstuden Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
 1.7.4.3  23-Jan-2011  bouyer Apply patch, requested by spz in ticket 1413:
dist/bind/ patch
include/resolv.h patch
include/arpa/nameser.h: patch
lib/libc/include/isc/assertions.h: patch
lib/libc/include/isc/eventlib.h patch
lib/libc/isc/assertions.c: patch
lib/libc/nameser/ns_parse.c patch
lib/libc/resolv/herror.c: patch
lib/libc/resolv/res_init.c patch
lib/libc/resolv/res_mkquery.c: patch
lib/libc/resolv/res_query.c patch
lib/libc/resolv/res_send.c: patch
usr.sbin/bind/Makefile.inc patch
usr.sbin/bind/include/config.h: patch
usr.sbin/bind/include/dns/code.h: patch
usr.sbin/bind/include/dns/enumclass.h: patch
usr.sbin/bind/include/dns/enumtype.h: patch
usr.sbin/bind/include/dns/rdatastruct.h: patch
usr.sbin/bind/include/isc/platform.h: patch
usr.sbin/bind/include/lwres/netdb.h: patch
usr.sbin/bind/include/lwres/platform.h: patch
usr.sbin/bind/libisc/Makefile: patch
lib/libc/inet/inet_addr.c new file

Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
 1.7.4.2  17-May-2007  jdc branches: 1.7.4.2.2;
Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).
 1.7.4.1  17-May-2007  jdc Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.
 1.7.4.2.2.1  23-Jan-2011  bouyer Apply patch, requested by spz in ticket 1413:
dist/bind/ patch
include/resolv.h patch
include/arpa/nameser.h: patch
lib/libc/include/isc/assertions.h: patch
lib/libc/include/isc/eventlib.h patch
lib/libc/isc/assertions.c: patch
lib/libc/nameser/ns_parse.c patch
lib/libc/resolv/herror.c: patch
lib/libc/resolv/res_init.c patch
lib/libc/resolv/res_mkquery.c: patch
lib/libc/resolv/res_query.c patch
lib/libc/resolv/res_send.c: patch
usr.sbin/bind/Makefile.inc patch
usr.sbin/bind/include/config.h: patch
usr.sbin/bind/include/dns/code.h: patch
usr.sbin/bind/include/dns/enumclass.h: patch
usr.sbin/bind/include/dns/enumtype.h: patch
usr.sbin/bind/include/dns/rdatastruct.h: patch
usr.sbin/bind/include/isc/platform.h: patch
usr.sbin/bind/include/lwres/netdb.h: patch
usr.sbin/bind/include/lwres/platform.h: patch
usr.sbin/bind/libisc/Makefile: patch
lib/libc/inet/inet_addr.c new file

Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
 1.9.12.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.14.1  09-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.11.10.1  10-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.11.8.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11.6.2  21-Jun-2008  christos - protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.
 1.11.6.1  21-Jun-2008  christos file res_query.c was added on branch christos-time_t on 2008-06-21 23:37:54 +0000
 1.11.4.1  06-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.13.6.1  17-Apr-2012  yamt sync with head
 1.17.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed