vmxnet3: guard against array overflow 61/14961/2
authorSteven <sluong@cisco.com>
Mon, 24 Sep 2018 21:23:44 +0000 (14:23 -0700)
committerDamjan Marion <dmarion@me.com>
Tue, 25 Sep 2018 07:40:54 +0000 (07:40 +0000)
commit8812a68062016e622b33cbae6a21bc073caa918e
tree9f7c72404829f81c97c70e31cc3efe7fc3a04b18
parent51a0b0bc3b1b51a7fe1c3cb45214c6de1ff2a865
vmxnet3: guard against array overflow

Under extreme condition, it is possible for input node to have more than 256 packets available
to process. Add a check to the while loop to prevent overrun buffer_indices and nexts.

Change-Id: Id9830e5c254f04216eb79e864a5460e08cf2e4e5
Signed-off-by: Steven <sluong@cisco.com>
src/plugins/vmxnet3/input.c