ofp-actions: Prevent integer overflow in decode.
authorJoe Stringer <joe@ovn.org>
Thu, 3 Mar 2016 08:22:50 +0000 (21:22 +1300)
committerJoe Stringer <joe@ovn.org>
Thu, 3 Mar 2016 21:55:07 +0000 (13:55 -0800)
commit5308056f53406e75d211f73a2847f9ebdf9c91c8
treef066d35d3f177f0f894a69572847d1965818d671
parent19b58f3cbcb3191432eefba3a504376399cc07a7
ofp-actions: Prevent integer overflow in decode.

When decoding a variable-length action, if the length of the action
exceeds the length storable in a uint16_t then something has gone
terribly wrong. Assert that this is not the case.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
lib/ofp-actions.c