summaryrefslogtreecommitdiff
path: root/tests/megasas-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-06-01 17:23:13 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-15 11:04:05 +0200
commit36c327a69d723571f02a7691631667cdb1865ee1 (patch)
tree8a764c27268aca85dfedec61eed9cfc37398524a /tests/megasas-test.c
parent5104fac8539eaf155fc6de93e164be43e1e62242 (diff)
downloadqemu-36c327a69d723571f02a7691631667cdb1865ee1.tar.gz
megasas: do not read command more than once from frame
Avoid TOC-TOU bugs by passing the frame_cmd down, and checking cmd->dcmd_opcode instead of cmd->frame->header.frame_cmd. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/megasas-test.c')
0 files changed, 0 insertions, 0 deletions