]> git.ipfire.org Git - thirdparty/hostap.git/commit
Validate MAC Address KDE length in the parser
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 5 Sep 2022 17:56:49 +0000 (20:56 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 5 Sep 2022 17:56:49 +0000 (20:56 +0300)
commitcd392151c59b494663e02e0633e3c6d957aef224
treecdc5b0a7f9869a26b140ae3c50e307a9ac774bf2
parent6f8af5974c1b52b473fe910f0bc772e356c6fd98
Validate MAC Address KDE length in the parser

Verify that the MAC Address KDE includes enough data to contain a MAC
address as a part of the parsing function so that each caller would not
need to verify this separately. None of the existing users of this
parser actually needed the MAC address value, so there was not any use
for the length field before. The updated design is more robust for
future uses and gets rid of that unused length field as well.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/wpa_common.c
src/common/wpa_common.h