WFD: Use cleaner bounds checking for sub-element length field
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:40:32 +0000 (18:40 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:40:32 +0000 (18:40 +0300)
commit4debeb42a65c39638159b1a1b952e156f9c92940
tree7d17f634342ce726e0e7ccdb7cceb5c28a7df525
parentc061ae590aec1765e660fa9dc00cbcb5479f5b3e
WFD: Use cleaner bounds checking for sub-element length field

Mark the variable as unsigned and make the length check use "len > end -
pos" version to makes this easier to understand for static analyzers
(CID 74155).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wifi_display.c