From: Jouni Malinen Date: Tue, 7 Jul 2015 19:43:39 +0000 (+0300) Subject: tests: Additional invalid NDEF records X-Git-Tag: hostap_2_5~441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba53a8a0099139261e4233ae79fdfa6aae4589c1;p=thirdparty%2Fhostap.git tests: Additional invalid NDEF records These are regression tests for NDEF message parsing issues with payload length validation. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_nfc_wps.py b/tests/hwsim/test_nfc_wps.py index 9a8255b17..82fe6caf5 100644 --- a/tests/hwsim/test_nfc_wps.py +++ b/tests/hwsim/test_nfc_wps.py @@ -559,7 +559,15 @@ def test_nfc_invalid_ndef_record(dev, apdev): "90000050", "9000005000", "9001013344", - "98010101334455" ] + "98010101334455", + "0017ffffffe3", + "0017ffffffe4", + "0017ffffffe9", + "0000fffffffa", + "0017ffffffe46170706c69636174696f6e2f766e642e7766612e777363", + "0017ffffffff6170706c69636174696f6e2f766e642e7766612e777363", + "0017000000006170706c69636174696f6e2f766e642e7766612e7773ff", + "080000000000" ] for test in tests: if "FAIL" not in dev[0].request("WPS_NFC_TAG_READ " + test): raise Exception("Invalid tag accepted: " + test)