aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant_sd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-10-18 08:52:32 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-25 13:34:59 (GMT)
commit904e977bc79cc82c073cba8f36fae8b20bff2baf (patch)
tree32e5040e5cdbe783c9f63511f255440569811135 /wpa_supplicant/p2p_supplicant_sd.c
parentbdce45b83e3a6c393d8e576f6b432c0ebe83f605 (diff)
downloadhostap-904e977bc79cc82c073cba8f36fae8b20bff2baf.zip
hostap-904e977bc79cc82c073cba8f36fae8b20bff2baf.tar.gz
hostap-904e977bc79cc82c073cba8f36fae8b20bff2baf.tar.bz2
Avoid undefined behavior in pointer arithmetic in scan result IE parsing
Reorder terms in a way that no invalid pointers are generated with pos+len operations. end-pos is always defined (with a valid pos pointer) while pos+len could end up pointing beyond the end pointer which would be undefined behavior. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant_sd.c')
0 files changed, 0 insertions, 0 deletions