summary refs log tree commit diff stats
path: root/qga/commands-posix.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-10-08 15:51:03 +0900
committerJason Wang <jasowang@redhat.com>2024-10-29 15:53:29 +0800
commitcd76e8fcbe1a340776ae61b4e182be3a45b26219 (patch)
tree842e1b7df3a321c5b528a562f30b943af9a579f8 /qga/commands-posix.c
parente29bc931e1699a98959680f6776b48673825762b (diff)
downloadfocaccia-qemu-cd76e8fcbe1a340776ae61b4e182be3a45b26219.tar.gz
focaccia-qemu-cd76e8fcbe1a340776ae61b4e182be3a45b26219.zip
virtio-net: Avoid indirection_table_mask overflow
We computes indirections_len by adding 1 to indirection_table_mask, but
it may overflow indirection_table_mask is UINT16_MAX. Check if
indirection_table_mask is small enough before adding 1.

Fixes: 590790297c0d ("virtio-net: implement RSS configuration command")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qga/commands-posix.c')
0 files changed, 0 insertions, 0 deletions