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
Current tag: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 1 08:47:25 2023 UTC (8 months, 2 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.14 (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-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
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored) to selected 1.14 (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, 7 months ago) by christos
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

close on exec hostaliases

Revision 1.14 / (download) - annotate - [selected], Tue Mar 13 21:13:44 2012 UTC (12 years, 1 month 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)

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.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.14 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Sun Apr 12 17:07:17 2009 UTC (15 years 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.14 (colored)

merge libbind and bump.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 21 23:37:53 2008 UTC (15 years, 10 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) to selected 1.14 (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 - [select for diffs], Sat Jun 21 20:41:48 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.9: +12 -6 lines
Diff to previous 1.9 (colored) to selected 1.14 (colored)

updates from bind-9-5-0

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.14 (colored)

Resolve conflicts.

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.14 (colored)

merge in 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.14 (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.14 (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, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored) to selected 1.14 (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, 11 months ago) by christos
Branch: MAIN
Changes since 1.3: +11 -2 lines
Diff to previous 1.3 (colored) to selected 1.14 (colored)

namespace protection for resolver routines.

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

netbsd rcsid.

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

add casts to silence lint.

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 20 17:18:54 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Diff to selected 1.14 (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>