freebsd-src/lib/libc/nameser
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
..
Makefile.inc Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
ns_name.c Fix broken pointer overflow check ns_name_unpack() 2014-08-12 13:09:32 +00:00
ns_netint.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
ns_parse.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
ns_print.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
ns_samedomain.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
ns_ttl.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
Symbol.map Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00