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


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 1 08:47:25 2023 UTC (7 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +6 -9 lines
Diff to previous 1.16 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Tue Feb 24 17:56:20 2015 UTC (9 years, 1 month ago) by christos
Branch: 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-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-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-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
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored) to selected 1.10 (colored)

belated removal of the advertising clause.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 16 01:30:00 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.10 (colored)

close on exec hostaliases

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:22 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.13: +10 -11 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.10 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:44 2012 UTC (12 years ago) by christos
Branch: 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
Changes since 1.13: +10 -11 lines
Diff to previous 1.13 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Sun Jan 23 21:52:34 2011 UTC (13 years, 2 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.7.4.2: +13 -5 lines
Diff to previous 1.7.4.2 (colored) next main 1.7.4.3 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Sun Jan 23 21:47:51 2011 UTC (13 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.7.4.2: +13 -5 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Mon Jan 10 00:42:20 2011 UTC (13 years, 2 months ago) by riz
Branch: netbsd-5-0
Changes since 1.11: +25 -9 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.10 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.11.14.1 / (download) - annotate - [select for diffs], Sun Jan 9 20:43:29 2011 UTC (13 years, 2 months ago) by riz
Branch: 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
Changes since 1.11: +25 -9 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.10 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Thu Jan 6 21:42:48 2011 UTC (13 years, 2 months ago) by riz
Branch: 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
Changes since 1.11: +25 -9 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.10 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 24 21:37:57 2009 UTC (14 years, 5 months ago) by christos
Branch: 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
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored) to selected 1.10 (colored)

don't read hostaliases using unbuffered reads. there is no security benefit.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:26 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.11: +25 -8 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.10 (colored)

Sync with HEAD.

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

Revision 1.12 / (download) - annotate - [select for diffs], Sun Apr 12 17:07:17 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.11: +25 -8 lines
Diff to previous 1.11 (colored) to selected 1.10 (colored)

merge libbind and bump.

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Sun Apr 12 16:35:48 2009 UTC (14 years, 11 months ago) by christos
Branch: ISC
CVS Tags: libbind-6-0rc1
Changes since 1.1.1.3: +33 -25 lines
Diff to previous 1.1.1.3 (colored) to selected 1.10 (colored)

libc portion of libbind from external/bsd/libbind

Revision 1.9.12.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:29:32 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.9: +12 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.11.6.2 / (download) - annotate - [select for diffs], Sat Jun 21 23:37:54 2008 UTC (15 years, 9 months ago) by christos
Branch: christos-time_t
Changes since 1.11.6.1: +467 -0 lines
Diff to previous 1.11.6.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.10 (colored)

- 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 (15 years, 9 months ago) by christos
Branch: christos-time_t
Changes since 1.11: +0 -467 lines
FILE REMOVED

file res_query.c was added on branch christos-time_t on 2008-06-21 23:37:54 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 21 23:37:53 2008 UTC (15 years, 9 months ago) by christos
Branch: 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
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

- 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) - annotate - [selected], Sat Jun 21 20:41:48 2008 UTC (15 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.9: +12 -6 lines
Diff to previous 1.9 (colored)

updates from bind-9-5-0

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Sun Jun 3 17:25:59 2007 UTC (16 years, 9 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.7: +21 -21 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Thu May 17 21:25:19 2007 UTC (16 years, 10 months ago) by jdc
Branch: 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
Changes since 1.7.4.1: +0 -0 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) to selected 1.10 (colored)

Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu May 17 00:43:53 2007 UTC (16 years, 10 months ago) by jdc
Branch: netbsd-4
Changes since 1.7: +21 -21 lines
Diff to previous 1.7 (colored) to selected 1.10 (colored)

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) - annotate - [select for diffs], Fri Mar 30 20:23:05 2007 UTC (17 years ago) by ghen
Branch: 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
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.10 (colored)

Resolve conflicts.

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Fri Mar 30 20:16:22 2007 UTC (17 years ago) by ghen
Branch: ISC
CVS Tags: bind-9-4-0
Changes since 1.1.1.2: +1 -1 lines
Diff to previous 1.1.1.2 (colored) to selected 1.10 (colored)

Import bind 9.4.0.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 27 22:26:44 2007 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +21 -21 lines
Diff to previous 1.7 (colored) to selected 1.10 (colored)

merge in resolver portion of bind-9.4.0-rc2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Jan 27 21:45:39 2007 UTC (17 years, 2 months ago) by christos
Branch: ISC
CVS Tags: bind-9-4-0-rc2
Changes since 1.1.1.1: +20 -20 lines
Diff to previous 1.1.1.1 (colored) to selected 1.10 (colored)

import resolver portion of bind-9.4.0-rc2

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 24 17:41:25 2006 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored) to selected 1.10 (colored)

don't re-define DEBUG

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 25 05:33:01 2004 UTC (19 years, 6 months ago) by christos
Branch: 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
Changes since 1.5: +9 -2 lines
Diff to previous 1.5 (colored) to selected 1.10 (colored)

Put back issetugid() check for hostaliases.
XXX: this is suboptimal, It would be better if we propelry checked
for access.

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 21 16:03:05 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored) to selected 1.10 (colored)

disable weak aliases for now; the resolver header file adds __ to all the
names.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 21 15:35:05 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.3: +11 -2 lines
Diff to previous 1.3 (colored) to selected 1.10 (colored)

namespace protection for resolver routines.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 19:43:39 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored) to selected 1.10 (colored)

netbsd rcsid.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 20 17:43:31 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored) to selected 1.10 (colored)

add casts to silence lint.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu May 20 17:18:54 2004 UTC (19 years, 10 months ago) by christos
Branch: ISC
CVS Tags: bind9_3_0beta3, bind-9-3-0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.10 (colored)

Import libc portion of the resolver from bind9

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 20 17:18:54 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Diff to selected 1.10 (colored)

Initial revision

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>