freebsd-dev/lib/libc
Hajimu UMEMOTO c397297cfe Fix broken pointer overflow check ns_name_unpack()
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)
2014-08-12 13:09:32 +00:00
..
amd64 siglongjmp(): Preserve floating point exception flags on i386 and amd64. 2014-06-09 21:35:36 +00:00
arm Add dl_unwind_find_exidx() for ARM EABI, required for C++ exception 2014-07-19 22:13:27 +00:00
capability use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
compat-43 Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
db Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage. 2014-03-06 07:44:45 +00:00
gdtoa Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
gen If telldir() is called immediately after a call to seekdir(), POSIX 2014-07-29 00:16:33 +00:00
gmon Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
i386 siglongjmp(): Preserve floating point exception flags on i386 and amd64. 2014-06-09 21:35:36 +00:00
iconv fix misordering... 2014-08-04 21:12:38 +00:00
include Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
inet Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
isc Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
locale minor perf enhancement for UTF-8 2014-07-04 22:39:39 +00:00
md Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
mips Remove ia64. 2014-07-07 00:27:09 +00:00
nameser Fix broken pointer overflow check ns_name_unpack() 2014-08-12 13:09:32 +00:00
net Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTED 2014-08-12 11:30:16 +00:00
nls Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
posix1e use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
powerpc Convert from WITHOUT_SYSCALL_COMPAT to MK_SYSCALL_COMPAT. 2014-04-05 17:54:43 +00:00
powerpc64 Convert from WITHOUT_SYSCALL_COMPAT to MK_SYSCALL_COMPAT. 2014-04-05 17:54:43 +00:00
quad Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
regex regex(3): Add support for \< and \> word delimiters 2014-06-30 20:54:25 +00:00
resolv Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
rpc Properly free resources in case of error. 2014-05-02 20:41:09 +00:00
softfloat Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
sparc64 Convert from WITHOUT_SYSCALL_COMPAT to MK_SYSCALL_COMPAT. 2014-04-05 17:54:43 +00:00
stdio Fix the example: free the memory that was allocated by getline(). 2014-07-31 08:28:42 +00:00
stdlib Fix hdestroy() compliance issue. 2014-07-21 15:44:59 +00:00
stdtime strftime() xlocale cleanups. 2014-07-26 14:24:13 +00:00
string use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
sys Extend kqueue's EVFILT_TIMER by adding precision unit flags support 2014-07-18 14:27:04 +00:00
uuid Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
xdr Remove ia64. 2014-07-07 00:27:09 +00:00
yp Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
libc.ldscript Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00
Makefile Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
Versions.def Fix the inheritance of the FBSDprivate_1.0 namespace. 2014-04-03 17:31:38 +00:00