summary refs log tree commit diff stats
path: root/hw/scsi/scsi-generic.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2018-10-27 01:13:14 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2018-11-06 21:35:05 +0100
commite58ccf039650065a9442de43c9816f81e88f27f6 (patch)
tree5f5849f8c32a89d97a874594c7c335074ab227a9 /hw/scsi/scsi-generic.c
parent7f135356564bc776083b7ecee81096ab49e670e4 (diff)
downloadfocaccia-qemu-e58ccf039650065a9442de43c9816f81e88f27f6.tar.gz
focaccia-qemu-e58ccf039650065a9442de43c9816f81e88f27f6.zip
lsi53c895a: check message length value is valid
While writing a message in 'lsi_do_msgin', message length value
in 'msg_len' could be invalid due to an invalid migration stream.
Add an assertion to avoid an out of bounds access, and reject
the incoming migration data if it contains an invalid message
length.

Discovered by Deja vu Security. Reported by Oracle.

Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20181026194314.18663-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions