commit | 81fb75a1d75c20d97292cbbe4cde6a1e65871abe | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sun May 22 18:49:59 2016 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sun May 22 18:49:59 2016 -0400 |
tree | 71138623e144edd910490f327696b546e14f7d67 | |
parent | 51eeb6ebc94d965768143c45e9f39b0a7998bdbd [diff] |
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.