]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r300612
authorsbruno <sbruno@FreeBSD.org>
Fri, 22 Jul 2016 03:26:01 +0000 (03:26 +0000)
committersbruno <sbruno@FreeBSD.org>
Fri, 22 Jul 2016 03:26:01 +0000 (03:26 +0000)
commit7a0632638b915e94b08bea034bdfd2e61b035263
treea9a634e31a5b7bd31ffc36d7252d934679968819
parent9547b1a0b336439094080e9f10f41f8f110b262e
MFC r300612
Reject ioctl commands for FLSHGCHR and FLSHPCHR if the size is greater
than sc->areq.  This is a bounds check to ensure we're not just cramming
arbitrarily sized nonsense into the driver and overflowing the heap.

PR: 209545
sys/dev/an/if_an.c