]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: ignore packet size greater than INT_MAX
authorJason Wang <jasowang@redhat.com>
Wed, 30 May 2018 05:16:36 +0000 (13:16 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 27 Mar 2019 05:53:38 +0000 (00:53 -0500)
commit901d84e6750e68dd01056650f8f20bd832e078de
treee960d5dc110d670e7540b8d515da4bd6a17ec6da
parent9d9430b75fd6e063d1f5a4d78228f21543458a44
net: ignore packet size greater than INT_MAX

There should not be a reason for passing a packet size greater than
INT_MAX. It's usually a hint of bug somewhere, so ignore packet size
greater than INT_MAX in qemu_deliver_packet_iov()

CC: qemu-stable@nongnu.org
Reported-by: Daniel Shapira <daniel@twistlock.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 1592a9947036d60dde5404204a5d45975133caf5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/net.c