NFC: Add a hardcoded limit on maximum NDEF payload length
authorJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 14:00:28 +0000 (17:00 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 14:03:34 +0000 (17:03 +0300)
commit2456264fad1ecd400776afde0cf09d18448dbb4b
treeade5cf184aad916cc747919cb7428f862ed70e4f
parentaa517ae22784aff08d3d9e38ad101b4b5c9828fb
NFC: Add a hardcoded limit on maximum NDEF payload length

While this is already enforced in practice due to the limits on the
maximum control interface command length and total_length bounds
checking here, this explicit check on payload_length value may help
static analyzers understand the code better. (CID 122668)

Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/ndef.c