]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Avoid heap-overflow on unexpected data
authorBrian Norris <briannorris@chromium.org>
Wed, 19 Aug 2020 19:44:46 +0000 (12:44 -0700)
committerJouni Malinen <j@w1.fi>
Sat, 22 Aug 2020 09:45:09 +0000 (12:45 +0300)
commit22c06de911dfa3e3459817f87f19722d04386819
tree8c6b6c414056476d600d9d7cc2f55b668ae316b5
parent2caff11d7aa53ec00fcad7ae0d9c12b2deadbdd0
wlantest: Avoid heap-overflow on unexpected data

We're doing a sort of bounds check, based on the previous loop, but only
after we've already tried to read off the end.

This squashes some ASAN errors I'm seeing when running the ap_ft hwsim
test module.

Signed-off-by: Brian Norris <briannorris@chromium.org>
wlantest/rx_eapol.c