]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-IKEv2: Make proposal_len validation clearer
authorJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 18:39:52 +0000 (20:39 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Nov 2014 19:03:40 +0000 (21:03 +0200)
commitd36f41692671a67913486f76ec6391e6dc326607
treebf2b6c6c0ae2f8ba33a7b00f2a3272647ae73f28
parentc4de71cec539f3d28fa9a6b2a0cf6a0345b3d8b9
EAP-IKEv2: Make proposal_len validation clearer

Some static analyzers seem to have issues understanding "pos +
proposal_len > end" style validation, so convert this to "proposal_len >
end - pos" to make this more obvious to be bounds checking for
proposal_len. (CID 62874)

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