]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional invalid NDEF records
authorJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 19:43:39 +0000 (22:43 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 13:52:42 +0000 (16:52 +0300)
These are regression tests for NDEF message parsing issues with payload
length validation.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_nfc_wps.py

index 9a8255b1727ca254770589d3aa5093ad050fc12b..82fe6caf53448de6281843e19f35f76090f57b01 100644 (file)
@@ -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)