mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 08:14:02 -05:00
tests: IBSS RSN OOM during wpa_init
This is a regression test for a segfault that was fixed in the previous commit. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6f416c7867
commit
8aab52461d
@ -11,6 +11,7 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import hwsim_utils
|
import hwsim_utils
|
||||||
|
from utils import alloc_fail
|
||||||
|
|
||||||
def connect_ibss_cmd(dev, id, freq=2412):
|
def connect_ibss_cmd(dev, id, freq=2412):
|
||||||
dev.dump_monitor()
|
dev.dump_monitor()
|
||||||
@ -386,3 +387,11 @@ def _test_ibss_5ghz(dev):
|
|||||||
dev[1].request("DISCONNECT")
|
dev[1].request("DISCONNECT")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[1].dump_monitor()
|
dev[1].dump_monitor()
|
||||||
|
|
||||||
|
def test_ibss_rsn_oom(dev):
|
||||||
|
"""IBSS RSN OOM during wpa_init"""
|
||||||
|
with alloc_fail(dev[0], 1, "wpa_init"):
|
||||||
|
ssid="ibss-rsn"
|
||||||
|
id = add_ibss_rsn(dev[0], ssid)
|
||||||
|
connect_ibss_cmd(dev[0], id)
|
||||||
|
bssid0 = wait_ibss_connection(dev[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user