]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Avoid unnecessary warning
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 12:03:59 +0000 (14:03 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commitcc4cdefc7f78214bc11e71609d24ef564ce0a6c7
tree994c499012af04cebfd3c054aadea64d6d506f1f
parenta9377bc380d870baed60ce6e29370e6df46cd037
UBSan: Avoid unnecessary warning

elems->mic might be NULL here, so do not try to decrement it by 2 even
if the result is not used anywhere due to a latter check for elems->mic
being NULL.

mesh_rsn.c:646:20: runtime error: pointer index expression with base 0x000000000000 overflowed to 0xfffffffffffffffe

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