The NetBSD Project

CVS log for src/lib/libc/resolv/res_query.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / resolv

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Aug 24 22:37:41 2024 UTC (3 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -5 lines
Not a bug, but avoid using a possibly negative index anyway (CID-603941)

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Aug 1 08:47:25 2023 UTC (16 months, 1 week ago) by mrg
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -9 lines
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.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Feb 24 17:56:20 2015 UTC (9 years, 9 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -7 lines
belated removal of the advertising clause.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Sep 16 01:30:00 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
close on exec hostaliases

Revision 1.13.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:22 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +10 -11 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Mar 13 21:13:44 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +10 -11 lines
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@

Revision 1.7.4.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 23 21:52:34 2011 UTC (13 years, 10 months ago) by bouyer
Branches: netbsd-4-0
Diff to: previous 1.7.4.2: preferred, colored; next MAIN 1.7.4.3: preferred, colored
Changes since revision 1.7.4.2: +13 -5 lines
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.

Revision 1.7.4.3: download - view: text, markup, annotated - select for diffs
Sun Jan 23 21:47:51 2011 UTC (13 years, 10 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.2: +13 -5 lines
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.

Revision 1.11.10.1: download - view: text, markup, annotated - select for diffs
Mon Jan 10 00:42:20 2011 UTC (13 years, 11 months ago) by riz
Branches: netbsd-5-0
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +25 -9 lines
Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.11.14.1: download - view: text, markup, annotated - select for diffs
Sun Jan 9 20:43:29 2011 UTC (13 years, 11 months ago) by riz
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +25 -9 lines
Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 6 21:42:48 2011 UTC (13 years, 11 months ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +25 -9 lines
Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Oct 24 21:37:57 2009 UTC (15 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -3 lines
don't read hostaliases using unbuffered reads. there is no security benefit.

Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:18:26 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +25 -8 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Apr 12 17:07:17 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +25 -8 lines
merge libbind and bump.

Revision 1.1.1.4 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Apr 12 16:35:48 2009 UTC (15 years, 8 months ago) by christos
Branches: ISC
CVS tags: libbind-6-0rc1
Diff to: previous 1.1.1.3: preferred, colored
Changes since revision 1.1.1.3: +33 -25 lines
libc portion of libbind from external/bsd/libbind

Revision 1.9.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:29:32 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +12 -4 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.11.6.2: download - view: text, markup, annotated - select for diffs
Sat Jun 21 23:37:54 2008 UTC (16 years, 5 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.11.6.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.6.1: +467 -0 lines
- protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.

Revision 1.11.6.1
Sat Jun 21 23:37:53 2008 UTC (16 years, 5 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.11: +0 -467 lines
file res_query.c was added on branch christos-time_t on 2008-06-21 23:37:54 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jun 21 23:37:53 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, christos-time_t-nbase, christos-time_t-base
Branch point for: netbsd-5-1, netbsd-5-0, netbsd-5, jym-xensuspend, christos-time_t
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -2 lines
- protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jun 21 20:41:48 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -6 lines
updates from bind-9-5-0

Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 3 17:25:59 2007 UTC (17 years, 6 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +21 -21 lines
Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.

Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Thu May 17 21:25:19 2007 UTC (17 years, 6 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE
Branch point for: netbsd-4-0
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.1: +0 -0 lines
Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).

Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Thu May 17 00:43:53 2007 UTC (17 years, 7 months ago) by jdc
Branches: netbsd-4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +21 -21 lines
Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Mar 30 20:23:05 2007 UTC (17 years, 8 months ago) by ghen
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Resolve conflicts.

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Mar 30 20:16:22 2007 UTC (17 years, 8 months ago) by ghen
Branches: ISC
CVS tags: bind-9-4-0
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +1 -1 lines
Import bind 9.4.0.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jan 27 22:26:44 2007 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +21 -21 lines
merge in resolver portion of bind-9.4.0-rc2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Jan 27 21:45:39 2007 UTC (17 years, 10 months ago) by christos
Branches: ISC
CVS tags: bind-9-4-0-rc2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +20 -20 lines
import resolver portion of bind-9.4.0-rc2

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jan 24 17:41:25 2006 UTC (18 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
don't re-define DEBUG

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Sep 25 05:33:01 2004 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -2 lines
Put back issetugid() check for hostaliases.
XXX: this is suboptimal, It would be better if we propelry checked
for access.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 21 16:03:05 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -2 lines
disable weak aliases for now; the resolver header file adds __ to all the
names.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri May 21 15:35:05 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +11 -2 lines
namespace protection for resolver routines.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 20 19:43:39 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -1 lines
netbsd rcsid.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 20 17:43:31 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4 lines
add casts to silence lint.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu May 20 17:18:54 2004 UTC (20 years, 6 months ago) by christos
Branches: ISC
CVS tags: bind9_3_0beta3, bind-9-3-0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Import libc portion of the resolver from bind9

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu May 20 17:18:54 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>