aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/inet
Commit message (Collapse)AuthorAgeFilesLines
* libc: fix cases of undefined behavior.Pedro F. Giffuni2018-08-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were found by the Undefined Behavious GsoC project at NetBSD: Avoid undefined behavior in ftok(3) Do not change the signedness bit with a left shift operation. Cast to unsigned integer to prevent this. ftok.c:56:10, left shift of 123456789 by 24 places cannot be represented in type 'int' ftok.c:56:10, left shift of 4160 by 24 places cannot be represented in type 'int' Avoid undefined behavior in an inet_addr.c Do not change the signedness bit with a left shift operation. Cast to unsigned integer to prevent this. inet_addr.c:218:20, left shift of 131 by 24 places cannot be represented in type 'int' Detected with micro-UBSan in the user mode. Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=337422
* SPDX: license IDs for some ISC-related files.Pedro F. Giffuni2017-12-089-9/+25
| | | | Notes: svn path=/head/; revision=326695
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-206-5/+17
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* libc: remove use of archaic __P() macroEd Maste2017-03-301-4/+3
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=316188
* Renumber copyright clause 4Warner Losh2017-02-286-6/+6
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk2016-04-184-4/+0
| | | | | | | | | According to style(9): > normally, include <sys/types.h> OR <sys/param.h>, but not both. (<sys/param.h> already includes <sys/types.h> when LOCORE is not defined). Notes: svn path=/head/; revision=298226
* Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.Craig Rodrigues2015-09-206-23/+7
| | | | Notes: svn path=/head/; revision=288038
* Update our stub resolver to final version of libbind.Hajimu UMEMOTO2014-08-1210-20/+22
|\ | | | | | | | | | | | | Obtained from: ISC Notes: svn path=/head/; revision=269867
| * Bring final version of libbind:Pedro F. Giffuni2014-08-0510-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Import the resolver part of BIND 9.4.3.vendor/resolver/9.4.3Hajimu UMEMOTO2008-12-142-5/+5
| | | | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=186083 svn path=/vendor/resolver/9.4.3/; revision=186084; tag=vendor/resolver/9.4.3
* | Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* | Set errno on inet_ntop(3) failure.Kevin Lo2014-02-071-2/+4
| | | | | | | | | | | | | | Reviewed by: glebius Notes: svn path=/head/; revision=261602
* | Merge the resolver part of BIND 9.4.3 into HEAD.Hajimu UMEMOTO2008-12-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com> Notes: svn path=/head/; revision=186090
* | Fix issues which allow snooping on ptys. [08:01]Colin Percival2008-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | Fix an off-by-one error in inet_network(3). [08:02] Security: FreeBSD-SA-08:01.pty Security: FreeBSD-SA-08:02.libc Notes: svn path=/head/; revision=175330
* | Require users to provide a length information for inet_ntoa_r,Xin LI2007-06-141-3/+4
| | | | | | | | | | | | | | | | | | this is common on other platforms. Reported by: pointyhat via kris Notes: svn path=/head/; revision=170715
* | Add inet_ntoa_r, a reentrant version of inet_ntoa. This isXin LI2007-06-112-0/+10
| | | | | | | | | | | | | | | | | | available on a lot of platforms, as well as libkern for years. Submitted by: "MQ" Notes: svn path=/head/; revision=170548
* | Merge BIND 9.4.1 into main chunk.Hajimu UMEMOTO2007-06-0313-50/+76
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=170244
* | This commit was generated by cvs2svn to compensate for changes in r170242,Hajimu UMEMOTO2007-06-031-3/+5
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=170243
| * Vendor import of BIND 9.4.1Hajimu UMEMOTO2007-06-0314-53/+81
| | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=170242
* | Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-1/+3
| | | | | | | | Notes: svn path=/head/; revision=169092
* | Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-096-24/+0
| | | | | | | | | | | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* | Merge BIND9 9.3.3 into main chunk.Hajimu UMEMOTO2006-12-151-2/+2
| | | | | | | | | | | | | | | | Obtained from: ISC MFC after: 1 week Notes: svn path=/head/; revision=165258
* | This commit was generated by cvs2svn to compensate for changes in r165254,Hajimu UMEMOTO2006-12-151-5/+5
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=165255
| * Vendor import of BIND 9.3.3Hajimu UMEMOTO2006-12-152-7/+7
| | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=165254
* | It's not enough to provide symbol map files; you also have to add themDag-Erling Smørgrav2006-03-231-0/+2
| | | | | | | | | | | | | | | | | | to ${SYM_MAPS}. This unbreaks world with SYMVER_ENABLED. Pointy hat to: ume Notes: svn path=/head/; revision=157049
* | - Merge our local changes.Hajimu UMEMOTO2006-03-2115-65/+202
|/ | | | | | | - Exclude unnecessary functions for us. Notes: svn path=/head/; revision=156956
* Vendor import of BIND 9.3.2Hajimu UMEMOTO2006-03-2114-0/+2403
Notes: svn path=/vendor/resolver/dist/; revision=156952