Skip to content

Commit

Permalink
cheri: Use container bounds when accessing sockaddr_dl from sdlbuf
Browse files Browse the repository at this point in the history
Fixes #2256.
  • Loading branch information
RoundofThree authored and bsdjhb committed Dec 5, 2024
1 parent 4f7e28b commit 0d25364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ ip_savecontrol(struct inpcb *inp, struct mbuf **mp, struct ip *ip,
if (inp->inp_flags & INP_RECVIF) {
struct ifnet *ifp;
struct sdlbuf {
struct sockaddr_dl sdl;
struct sockaddr_dl sdl __subobject_use_container_bounds;
u_char pad[32];
} sdlbuf;
struct sockaddr_dl *sdp;
Expand Down

0 comments on commit 0d25364

Please sign in to comment.