aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/nameser/ns_name.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* libc: Purge unneeded cdefs.hWarner Losh2023-11-011-1/+0
| | | | | | | | | These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* nameser: Fix a typo in a source code commentGordon Bergling2023-06-191-1/+1
| | | | | | -s /unknwon/unknown/ MFC after: 3 days
* Bounds check again after advancing cp, otherwise we have a possibleCy Schubert2019-09-051-2/+2
| | | | | | | | | | | | | | | | | heap buffer overflow. This was discovered by a Google fuzzer test. This can lead to remote denial of service. User interaction and execution privileges are not a prerequisite for exploitation. Reported by: enh at Google, to FreeBSD by maya@NetBSD.org Obtained from: enh at Google See also: NetBSD ns_name.c r1.12 Reviewed by: delphij, ume MFC after: 3 days https://android-review.googlesource.com/c/platform/bionic/+/1093130 Differential Revision: https://reviews.freebsd.org/D21523 Notes: svn path=/head/; revision=351889
* SPDX: license IDs for some ISC-related files.Pedro F. Giffuni2017-12-081-1/+3
| | | | Notes: svn path=/head/; revision=326695
* Fix broken pointer overflow check ns_name_unpack()Hajimu UMEMOTO2014-08-121-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many compilers may optimize away the overflow check `msg + l < msg', where `msg' is a pointer and `l' is an integer, because pointer overflow is undefined behavior in C. Use a safe precondition test `l >= eom - msg' instead. Reference: https://android-review.googlesource.com/#/c/50570/ Requested by: pfg Obtained from: NetBSD (CVS rev. 1.10) Notes: svn path=/head/; revision=269873
* | Update our stub resolver to final version of libbind.Hajimu UMEMOTO2014-08-121-34/+216
|\| | | | | | | | | | | | | Obtained from: ISC Notes: svn path=/head/; revision=269867
| * Fix broken pointer overflow check ns_name_unpack()Pedro F. Giffuni2014-08-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many compilers may optimize away the overflow check `msg + l < msg', where `msg' is a pointer and `l' is an integer, because pointer overflow is undefined behavior in C. Use a safe precondition test `l >= eom - msg' instead. Reference: https://android-review.googlesource.com/#/c/50570/ Obtained from: NetBSD (CVS rev. 1.10) MFC after: 3 weeks Notes: svn path=/vendor/resolver/dist/; revision=269668
| * Bring final version of libbind:Pedro F. Giffuni2014-08-051-34/+214
|/ | | | | | | | | | | | | | | | | From http://www.isc.org/downloads/libbind/ The libbind functions have been separated from the BIND suite as of BIND 9.6.0. Originally from older versions of BIND, they have been continually maintained and improved but not installed by default with BIND 9. This standard resolver library contains the same historical functions and headers included with many Unix operating systems. In fact, most implementations are based on the same original code. At present, NetBSD maintains libbind code, now known as "netresolv". Notes: svn path=/vendor/resolver/dist/; revision=269610
* Vendor import of BIND 9.4.1Hajimu UMEMOTO2007-06-031-87/+97
| | | | Notes: svn path=/vendor/resolver/dist/; revision=170242
* Vendor import of BIND 9.3.2Hajimu UMEMOTO2006-03-211-0/+963
Notes: svn path=/vendor/resolver/dist/; revision=156952