freebsd-dev/lib/libc/net
Gleb Smirnoff 74e540d788 Fix possible buffer overflow(s) in link_ntoa(3).
A specially crafted sockaddr_dl argument can trigger a static buffer overflow
in the libc library, with possibility to rewrite with arbitrary data following
static buffers that belong to other library functions.

Reviewed by:	kib
Security:	FreeBSD-SA-16:37.libc
2016-12-06 18:50:33 +00:00
..
base64.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
byteorder.3
ether_addr.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
ethers.3
eui64.3
eui64.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
gai_strerror.3
gai_strerror.c
getaddrinfo.3 addrinfo.ai_family is an address family, not a protocol family. 2015-12-20 15:18:50 +00:00
getaddrinfo.c 'addrlen' does not matter when we need to find the first non-zero bit in 2016-08-31 18:49:50 +00:00
gethostbydns.c Rename dprintf into dbg_printf to avoid collision with dprintf(3) 2016-05-10 07:45:44 +00:00
gethostbyht.c libc: Make various internal file descriptors from fopen() close-on-exec. 2013-08-23 13:59:47 +00:00
gethostbyname.3 Consistently use 'af' as an argument name for address family. 2013-08-18 10:38:59 +00:00
gethostbynis.c Remove _gethostbynisname() and _gethostbynisaddr(). These functions 2015-12-25 10:49:40 +00:00
gethostnamadr.c libc: spelling fixes. 2016-04-30 01:24:24 +00:00
getifaddrs.3 Fix ifa_data description. 2014-11-25 15:09:34 +00:00
getifaddrs.c libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
getifmaddrs.3 Update manpages for r250887. 2013-05-21 21:39:18 +00:00
getifmaddrs.c Switch to 2-clause license and standard text 2013-06-06 21:09:27 +00:00
getipnodebyname.3
getnameinfo.3 Add NI_NUMERICSCOPE. 2016-07-28 10:05:41 +00:00
getnameinfo.c Add NI_NUMERICSCOPE. 2016-07-28 10:05:41 +00:00
getnetbydns.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 21:21:01 +00:00
getnetbyht.c Revert r301707 2016-06-08 23:30:13 +00:00
getnetbynis.c
getnetent.3 - the preferred way to write a NULL pointer constant is with NULL 2012-11-16 15:02:35 +00:00
getnetnamadr.c libc: spelling fixes. 2016-04-30 01:24:24 +00:00
getproto.c Add declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings. 2015-09-20 04:20:31 +00:00
getprotoent.3 - the preferred way to write a NULL pointer constant is with NULL 2012-11-16 15:02:35 +00:00
getprotoent.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
getprotoname.c
getservent.3 - the preferred way to write a NULL pointer constant is with NULL 2012-11-16 15:02:35 +00:00
getservent.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
hesiod.3
hesiod.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
if_indextoname.3
if_indextoname.c Use the LLINDEX macro to access the link-level I/F index. This makes 2012-05-19 02:39:43 +00:00
if_nameindex.c Use the LLINDEX macro to access the link-level I/F index. This makes 2012-05-19 02:39:43 +00:00
if_nametoindex.c Zero out a local variable also when PURIFY is not defined. 2015-09-10 10:23:23 +00:00
inet6_opt_init.3
inet6_option_space.3
inet6_rth_space.3
inet6_rthdr_space.3
inet_net.3 Remove <sys/types.h> from the SYNOPSIS. 2016-08-18 06:39:09 +00:00
inet.3
ip6opt.c Minor indentation issue. 2016-04-20 16:03:53 +00:00
linkaddr.3
linkaddr.c Fix possible buffer overflow(s) in link_ntoa(3). 2016-12-06 18:50:33 +00:00
Makefile.inc Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
map_v4v6.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
name6.c 'addrlen' does not matter when we need to find the first non-zero bit in 2016-08-31 18:49:50 +00:00
netdb_private.h Remove _gethostbynisname() and _gethostbynisaddr(). These functions 2015-12-25 10:49:40 +00:00
nscache.c Define _NS_PRIVATE to make declarations visible. 2015-09-20 04:17:03 +00:00
nscachedcli.c libc: spelling fixes. 2016-04-30 01:24:24 +00:00
nsdispatch.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
nsdispatch.c The fallback flag in nsdispatch prevents the fallback implementation of 2014-11-25 09:47:15 +00:00
nslexer.l Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 21:21:01 +00:00
nsparser.y Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 21:21:01 +00:00
nss_backends.h
nss_compat.c Don't conflate enum nss_status return values values with int (NS_SUCCESS, 2016-08-16 11:38:45 +00:00
ntoh.c Add missing includes to eliminate -Wmissing-prototypes warnings 2015-09-20 04:15:37 +00:00
rcmd.3
rcmd.c libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
rcmdsh.3
rcmdsh.c libc: Use namespace.h in a few more files. 2015-12-20 23:05:20 +00:00
recv.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 21:21:01 +00:00
res_config.h libc: spelling fixes. 2016-04-30 01:24:24 +00:00
resolver.3
rthdr.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
sctp_bindx.3 Fix name of a constant. 2015-06-14 20:16:36 +00:00
sctp_connectx.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_freepaddrs.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_getaddrlen.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_getassocid.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_getpaddrs.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_opt_info.3 Remove the advertising clause from the Regents of the University of 2013-05-28 20:37:48 +00:00
sctp_recvmsg.3 sendmsg(3) -> sendmsg(2) 2016-02-29 17:19:15 +00:00
sctp_send.3 Various mdoc fixes and a few EOL whitespace removals. 2014-12-21 12:36:36 +00:00
sctp_sendmsg.3 sendmsg(3) -> sendmsg(2) 2016-02-29 17:19:15 +00:00
sctp_sys_calls.c sctp_sendx() needs to provide the assoc_id back. 2016-01-24 22:31:34 +00:00
send.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 21:21:01 +00:00
sockatmark.3
sockatmark.c Add missing includes to eliminate -Wmissing-prototypes warnings 2015-09-20 04:15:37 +00:00
sourcefilter.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
sourcefilter.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
Symbol.map Add an SCTP symbol which was missed in 2015-03-28 09:08:57 +00:00
vars.c