From: Jouni Malinen Date: Mon, 29 Oct 2018 19:10:27 +0000 (+0200) Subject: tests: WNM-Sleep Mode Request bounds checking for empty contents X-Git-Tag: hostap_2_8~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c1e29fd302d4457a293eed22604c27f57356ed3;p=thirdparty%2Fhostap.git tests: WNM-Sleep Mode Request bounds checking for empty contents The wnm_sleep_mode_proto test case was already covering number of invalid WNM-Sleep Mode Request frame cases, but it was missing the shortest possible case with a missing Dialog Token field. Add that as a regression test case for bounds checking in ieee802_11_rx_wnmsleep_req(). Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 192761633..866cbfc79 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -452,7 +452,8 @@ def test_wnm_sleep_mode_proto(dev, apdev): hdr = "d0003a01" + bssid.replace(':', '') + addr.replace(':', '') + bssid.replace(':', '') + "1000" hapd.set("ext_mgmt_frame_handling", "1") - tests = [ "0a1001", + tests = [ "0a10", + "0a1001", "0a10015d00", "0a10015d01", "0a10015d0400000000",