diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-05-22 18:49:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-05-22 18:49:59 -0400 |
commit | 81fb75a1d75c20d97292cbbe4cde6a1e65871abe (patch) | |
tree | 71138623e144edd910490f327696b546e14f7d67 /ldso | |
parent | 51eeb6ebc94d965768143c45e9f39b0a7998bdbd (diff) | |
download | musl-81fb75a1d75c20d97292cbbe4cde6a1e65871abe.tar.gz musl-81fb75a1d75c20d97292cbbe4cde6a1e65871abe.tar.xz musl-81fb75a1d75c20d97292cbbe4cde6a1e65871abe.zip |
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.
Diffstat (limited to 'ldso')
0 files changed, 0 insertions, 0 deletions