mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
tests: FST-MANAGER SESSION_SET parameter parsing error cases
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c836aa267e
commit
f067a05589
@ -1978,6 +1978,12 @@ def test_fst_send_oom(dev, apdev, test_params):
|
|||||||
if not res.startswith("OK"):
|
if not res.startswith("OK"):
|
||||||
raise Exception("SESSION_INITIATE failed")
|
raise Exception("SESSION_INITIATE failed")
|
||||||
|
|
||||||
|
tests = [ "", "foo", sid, sid + " foo", sid + " foo=bar" ]
|
||||||
|
for t in tests:
|
||||||
|
res = initiator.grequest("FST-MANAGER SESSION_SET " + t)
|
||||||
|
if not res.startswith("FAIL"):
|
||||||
|
raise Exception("Invalid SESSION_SET accepted")
|
||||||
|
|
||||||
with alloc_fail(hapd, 1, "fst_session_send_action"):
|
with alloc_fail(hapd, 1, "fst_session_send_action"):
|
||||||
res = initiator.grequest("FST-MANAGER SESSION_TEARDOWN " + sid)
|
res = initiator.grequest("FST-MANAGER SESSION_TEARDOWN " + sid)
|
||||||
if not res.startswith("FAIL"):
|
if not res.startswith("FAIL"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user