Rich Felker 81fb75a1d7 fix undefined pointer arithmetic in CMSG_NXTHDR macro
previously, the only way the stopping condition could be met with
correct lengths in the headers invoked undefined behavior, adding
sizeof(struct cmsghdr) beyond the end of the cmsg buffer.

instead, compute and compare sizes rather than pointers.
2016-05-22 18:49:59 -04:00
..
2014-04-07 02:46:15 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2013-08-14 02:48:11 -04:00
2013-12-29 21:55:21 -05:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2013-01-12 19:42:39 +01:00
2011-04-05 12:13:54 -04:00
2011-02-12 00:22:29 -05:00
2013-07-19 19:57:52 -04:00
2011-09-23 14:24:57 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2012-08-15 08:31:44 -04:00