Paolo Bonzini 57dbb58d80 scsi-generic: avoid out-of-bounds access to VPD page list
A device can report an excessive number of VPD pages when asked for a
list; this can cause an out-of-bounds access to buf in
scsi_generic_set_vpd_bl_emulation.  It should not happen, but
it is technically not incorrect so handle it: do not check any byte
past the allocation length that was sent to the INQUIRY command.

Reported-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-11-06 21:35:05 +01:00
..
2018-09-24 18:49:11 +01:00
2018-11-02 14:03:33 +00:00
2018-10-25 20:17:12 +01:00
2018-10-29 12:59:15 +00:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-11-06 21:35:05 +01:00
2016-01-29 15:07:25 +00:00
2018-08-18 18:01:34 +03:00
2018-11-05 09:55:01 +01:00
2018-10-26 17:17:32 +02:00