musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/a64l.c
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 /src/misc/a64l.c
parent51eeb6ebc94d965768143c45e9f39b0a7998bdbd (diff)
downloadmusl-81fb75a1d75c20d97292cbbe4cde6a1e65871abe.tar.gz
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 'src/misc/a64l.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月20日 13:39:38 +0000

AltStyle によって変換されたページ (->オリジナル) /