diff options
author | 2016-09-12 18:14:11 +0530 | |
---|---|---|
committer | 2016-09-14 12:25:13 +0200 | |
commit | 670e56d3ed2918b3861d9216f2c0540d9e9ae0d5 (patch) | |
tree | 9c2e1a74b181ee1222e66ef887133d853e3bb19c /util/bufferiszero.c | |
parent | virtio-scsi: Don't abort when media is ejected (diff) | |
download | qemu-670e56d3ed2918b3861d9216f2c0540d9e9ae0d5.tar.xz qemu-670e56d3ed2918b3861d9216f2c0540d9e9ae0d5.zip |
scsi: mptsas: use g_new0 to allocate MPTSASRequest object
When processing IO request in mptsas, it uses g_new to allocate
a 'req' object. If an error occurs before 'req->sreq' is
allocated, It could lead to an OOB write in mptsas_free_request
function. Use g_new0 to avoid it.
Reported-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1473684251-17476-1-git-send-email-ppandit@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/bufferiszero.c')
0 files changed, 0 insertions, 0 deletions