aboutsummaryrefslogtreecommitdiff
path: root/block/bochs.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2016-05-25 17:55:10 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-29 09:11:11 +0200
commitb60bdd1f1ee1616b7a9aeeffb4088e1ce2710fb2 (patch)
tree0e470ca2c4bfa4d518b7a9249a5406feb4a665e9 /block/bochs.c
parentd37af740730dbbb93960cd318e040372d04d6dcf (diff)
scsi: megasas: check 'read_queue_head' index value
While doing MegaRAID SAS controller command frame lookup, routine 'megasas_lookup_frame' uses 'read_queue_head' value as an index into 'frames[MEGASAS_MAX_FRAMES=2048]' array. Limit its value within array bounds to avoid any OOB access. Reported-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-Id: <1464179110-18593-1-git-send-email-ppandit@redhat.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/bochs.c')
0 files changed, 0 insertions, 0 deletions