about summary refs log tree commit diff
path: root/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-05-22 18:49:59 -0400
committerRich Felker <dalias@aerifal.cx>2016-05-22 18:49:59 -0400
commit81fb75a1d75c20d97292cbbe4cde6a1e65871abe (patch)
tree71138623e144edd910490f327696b546e14f7d67 /ldso
parent51eeb6ebc94d965768143c45e9f39b0a7998bdbd (diff)
downloadmusl-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