Brian Norris 22c06de911 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>
2020-08-22 12:45:09 +03:00
..
2020-03-16 00:07:20 +02:00
2016-12-28 14:31:42 +02:00
2019-12-27 23:16:45 +02:00
2017-03-07 13:19:10 +02:00