]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix use after free warning introduced by gcc 12.1
authorkrishna T <krishna.t@nordicsemi.no>
Thu, 20 Apr 2023 19:28:21 +0000 (00:58 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 6 Nov 2023 08:57:34 +0000 (10:57 +0200)
commit5025047ac3b321d41b2cd303e43454fcac6820ca
tree55c847378c5e011ed1b4f703961f4fa72fd6bcca
parent236c0cfbcdf7459be1727afb7eb540c4ee081cbc
Fix use after free warning introduced by gcc 12.1

gcc 12.1 complains about using pointer after realloc as it could
potentially be moved/freed, causing any uses after UB.

Fix this by doing checks before realloc and use those statuses and
update with new BSS.

Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
wpa_supplicant/bss.c