]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Add a maximum length limit for peer vendor IEs
authorJouni Malinen <jouni@codeaurora.org>
Thu, 4 Feb 2021 23:39:29 +0000 (01:39 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 4 Feb 2021 23:39:29 +0000 (01:39 +0200)
commit1c3e71d1499ae1dbe97dd517efcf554933c45bfd
tree16592f34658b32e699dc94e5edcdf7f644478f79
parent947272febe24a8f0ea828b5b2f35f13c3821901e
P2P: Add a maximum length limit for peer vendor IEs

This is mainly to help with fuzz testing that could generate overly long
test data that would not be possible in real use cases due to MMPDU size
limits. The implementation for storing vendor IEs with such
unrealisticly long IE buffers can result in huge number of memory
reallozations and analyzing those can be very heavy.

While the maximum length of the fuzzing test input could be limited, it
seems nicer to limit this IE storage limit instead to avoid timeouts
from fuzz test runs.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p.c