]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-FAST: Clean up binary PAC file parser validation steps
authorJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 18:31:08 +0000 (20:31 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 19:03:40 +0000 (21:03 +0200)
commit364182a80fcc60c0ce828a949b029bacca85c2de
tree775c455dd6036f92c91dcf4ab91c328057b08ed3
parent002a2495bea40a4d192cb9d22687fa16ad92c739
EAP-FAST: Clean up binary PAC file parser validation steps

This was too difficult for some static analyzers (CID 62876). In
addition, the pac_info_len assignment should really have explicitly
validated that there is room for the two octet length field instead of
trusting the following validation step to handle both this and the
actual pac_info_len bounds checking.

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