commit | adf96fb66b1f0606b8d4f4f5e01e33a10c95ee07 | [log] [tgz] |
---|---|---|
author | Jouni Malinen <j@w1.fi> | Sun Nov 23 20:57:34 2014 +0200 |
committer | Jouni Malinen <j@w1.fi> | Sun Nov 23 21:03:40 2014 +0200 |
tree | 7604758d216cc7d7fc3b6d7c43c3e4fa4a5838c8 | |
parent | 5c6787a6cab23c9814db25ef26f5366d4f699330 [diff] |
WPS: Add explicit message length limit of 50000 bytes Previously, this was implicitly limited by the 16-bit length field to 65535. This resulted in unhelpful static analyzer warnings (CID 62868). Add an explicit (but pretty arbitrary) limit of 50000 bytes to avoid this. The actual WSC messages are significantly shorter in practice, but there is no specific protocol limit, so 50000 is as good as any limit to use here. Signed-off-by: Jouni Malinen <j@w1.fi>