]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Truncate variable length string attributes to maximum length
authorJouni Malinen <j@w1.fi>
Sun, 19 Apr 2015 14:17:37 +0000 (17:17 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 22 Apr 2015 19:05:12 +0000 (22:05 +0300)
commit6b94f71dcd16d88845759dad90c13d41675da6e9
tree116ab5dcaebebdacd6c4eb995ce3e0d9088e268e
parentf4b64c603e1f3764c4ffa42b3b7c74c8fa284542
WPS: Truncate variable length string attributes to maximum length

This enforces variable length strings Manufacturer, Model Name, Model
Number, and Serial Number to be within the maximum length defined in the
WSC specification. While none of the existing users for these within
hostapd/wpa_supplicant had problems with longer strings, it is good to
ensure the strings are not longer to avoid potential issues at higher
layer components.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/p2p/p2p.h
src/wps/wps_attr_parse.c
src/wps/wps_defs.h