summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-12-22 14:42:30 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-12-22 14:42:30 +0000
commitaa4d83a3b71a254224304b3680c77da74efd7115 (patch)
treef6ac3a907e6dc026ad7fe2280ee08a75f5a88aa0 /sys/lib
parente1d86d0d2b376fc4eca78c2e0688b8e32d83025e (diff)
Avoid using m_trailingspace(9) on an mbuf allocated with MGET(9) as it relies
on header fields that aren't initialized, which may trigger an assertion. Check whether the control message doesn't exceed MLEN instead and turn the check into a KASSERT as the driver should not generate control messages that are larger. with help form claudio@ (who points out that the driver should not use MT_CONTROL here). ok patrick@
Diffstat (limited to 'sys/lib')
0 files changed, 0 insertions, 0 deletions