diff options
author | Jouni Malinen <j@w1.fi> | 2015-09-07 17:08:52 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-09-07 17:11:41 +0300 |
commit | fe67b94506930bff568c7096815a2ee879bc37b6 (patch) | |
tree | e3b840d1f54150c5bcb531ef7af20e9efe134943 | |
parent | 3d105cdff6e5434e1ab3e4d75095d7903938128f (diff) | |
download | hostap-fe67b94506930bff568c7096815a2ee879bc37b6.tar.gz |
tests: WPS ER OOM in PutWLANResponse generation
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r-- | tests/hwsim/test_ap_wps.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index bfef895be..9a4df5a87 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -4388,6 +4388,18 @@ RGV2aWNlIEEQSQAGADcqAAEg if ev is None: raise Exception("Enrollee add event not seen") + with alloc_fail(dev[0], 1, "base64_encode;wps_er_soap_hdr"): + send_wlanevent(url, uuid, data) + + with alloc_fail(dev[0], 1, "wpabuf_alloc;wps_er_soap_hdr"): + send_wlanevent(url, uuid, data) + + with alloc_fail(dev[0], 1, "http_client_url_parse;wps_er_sta_send_msg"): + send_wlanevent(url, uuid, data) + + with alloc_fail(dev[0], 1, "http_client_addr;wps_er_sta_send_msg"): + send_wlanevent(url, uuid, data) + def test_ap_wps_er_http_proto_no_event_sub_url(dev, apdev): """WPS ER HTTP protocol testing - no eventSubURL""" class WPSAPHTTPServer_no_event_sub_url(WPSAPHTTPServer): |