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
..
2014-08-04 21:12:38 +00:00
2014-07-04 22:39:39 +00:00
2014-07-07 00:27:09 +00:00
2014-07-21 15:44:59 +00:00
2014-07-26 14:24:13 +00:00
2014-07-07 00:27:09 +00:00