xemu/scsi
Paolo Bonzini 2770c90d43 scsi: fix scsi_convert_sense crash when in_buf == NULL && in_len == 0
scsi_disk_emulate_command passes in_buf == NULL when sent a REQUEST
SENSE command.  Check for in_len == 0 before dereferencing in_buf.

Fixes: f68d98b21f
Reported-by: Roman Kagan <rkagan@virtuozzo.com>
Tested-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-01-12 09:54:13 +01:00
..
Makefile.objs scsi: add persistent reservation manager using qemu-pr-helper 2017-09-22 21:07:27 +02:00
pr-helper.h scsi: build qemu-pr-helper 2017-09-22 21:07:24 +02:00
pr-manager-helper.c scsi: add persistent reservation manager using qemu-pr-helper 2017-09-22 21:07:27 +02:00
pr-manager.c scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
qemu-pr-helper.c qemu-pr-helper: miscellaneous fixes 2017-12-20 22:29:26 +01:00
trace-events scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
utils.c scsi: fix scsi_convert_sense crash when in_buf == NULL && in_len == 0 2018-01-12 09:54:13 +01:00