]> git.ipfire.org Git - thirdparty/hostap.git/commit
TLS: Reorder length bounds checking to avoid static analyzer warning
authorJouni Malinen <j@w1.fi>
Sat, 6 Dec 2014 16:34:23 +0000 (18:34 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Dec 2014 16:36:02 +0000 (18:36 +0200)
commit7d043641044566f08e059774caab50fc93290dcf
treef001e7c91d4b8d118dbbe67f3785fd7ebf1174f2
parent41f480005fc9653b5b5f7c46d51bdefe66c72795
TLS: Reorder length bounds checking to avoid static analyzer warning

For some reason, "pos + len > end" is not clear enough, but "len > end -
pos" is recognized. Use that to get rid of a false positive from a
static analyzer (CID 72697).

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