ume 82bd2f3628 MFC r269873:
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-30 10:25:41 +00:00
..
2014-08-21 17:36:42 +00:00
2014-08-04 14:56:49 +00:00
2013-01-01 18:29:25 +00:00
2014-08-30 10:25:41 +00:00
2013-11-29 19:44:30 +00:00
2014-03-05 19:30:36 +00:00
2013-12-10 22:55:22 +00:00
2014-08-23 02:24:47 +00:00
2014-02-09 00:34:21 +00:00
2014-07-26 02:41:18 +00:00
2012-06-02 08:47:26 +00:00
2014-01-09 23:08:56 +00:00
2014-06-20 07:32:03 +00:00
2014-04-24 10:23:35 +00:00
2012-04-18 07:02:53 +00:00
2014-07-11 00:00:00 +00:00
2014-03-31 00:28:54 +00:00
2014-08-21 17:32:38 +00:00
2013-05-30 08:02:00 +00:00
2014-06-18 05:35:09 +00:00
2014-08-27 19:51:42 +00:00
2014-03-19 23:55:03 +00:00
2013-05-12 22:22:12 +00:00
2014-08-08 14:53:01 +00:00
2014-02-01 22:29:04 +00:00
2013-11-14 09:25:29 +00:00
2014-07-25 23:12:22 +00:00
2012-10-18 15:39:29 +00:00
2013-05-12 22:22:12 +00:00
2014-08-16 08:38:53 +00:00
2014-07-19 23:44:57 +00:00
2014-08-27 14:17:15 +00:00
2014-08-27 18:25:14 +00:00
2013-10-23 18:07:07 +00:00
2014-07-20 00:32:22 +00:00
2014-03-01 03:09:16 +00:00
2013-12-28 20:05:31 +00:00
2014-08-19 23:33:51 +00:00