qemu-e2k/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
pr-manager-helper.c scsi: add persistent reservation manager using qemu-pr-helper 2017-09-22 21:07:27 +02:00
pr-manager.c
qemu-pr-helper.c qemu-pr-helper: miscellaneous fixes 2017-12-20 22:29:26 +01:00
trace-events
utils.c scsi: fix scsi_convert_sense crash when in_buf == NULL && in_len == 0 2018-01-12 09:54:13 +01:00