]> git.ipfire.org Git - thirdparty/hostap.git/commit
Make GTK length validation easier to analyze
authorJouni Malinen <j@w1.fi>
Fri, 5 Dec 2014 21:05:11 +0000 (23:05 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Dec 2014 10:16:32 +0000 (12:16 +0200)
commitc397eff82894efdaf6c6a49f5c9cf58f11564662
tree489fca1892b5022bac9b6ae8d996780ce410dd38
parent369d07afc194fe5d96c085672ad960afac312c2a
Make GTK length validation easier to analyze

Bounds checking for gd->gtk_len in wpa_supplicant_check_group_cipher()
was apparently too complex for some static analyzers. Use a local
variable and a more explicit validation step to avoid false report.
(CID 62864)

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/wpa.c