]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Check NDEF record length fields separately
authorJouni Malinen <j@w1.fi>
Sun, 20 Nov 2022 10:08:47 +0000 (12:08 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Nov 2022 13:15:58 +0000 (15:15 +0200)
commit30403e96574b2fde643df446b8a52bc8eec5fd5d
treea3a2944ee4c9bf6188bb6616ae7eac018b865fa8
parentcd0e8653a24d3744d52c6bf47ae2cbb9f3632291
WPS: Check NDEF record length fields separately

Try to make the bounds checking easier for static analyzers by checking
each length field separately in addition to checking them all in the end
against the total buffer length.

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