aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant_sd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-10-18 09:04:16 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-25 13:34:59 (GMT)
commit619fdfacc418125db4bb42339e6c7b6e6f40fe19 (patch)
treebcd945e81380ec1549d2feb8b8c70eed0c3eda3e /wpa_supplicant/p2p_supplicant_sd.c
parent904e977bc79cc82c073cba8f36fae8b20bff2baf (diff)
downloadhostap-619fdfacc418125db4bb42339e6c7b6e6f40fe19.zip
hostap-619fdfacc418125db4bb42339e6c7b6e6f40fe19.tar.gz
hostap-619fdfacc418125db4bb42339e6c7b6e6f40fe19.tar.bz2
HS 2.0: Avoid undefined behavior in pointer arithmetic
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