summaryrefslogtreecommitdiffstats
path: root/qom
diff options
context:
space:
mode:
authorPeter Lieven2017-01-19 17:43:50 +0100
committerPaolo Bonzini2017-01-20 13:22:17 +0100
commite12ed72e5c00dd3375b8bd107200e4d7e950276a (patch)
tree787c5b2e36040215c20caa1cfe84637391889ced /qom
parentRevert "win32: don't run subprocess tests on Mingw32 platform" (diff)
downloadqemu-e12ed72e5c00dd3375b8bd107200e4d7e950276a.tar.gz
qemu-e12ed72e5c00dd3375b8bd107200e4d7e950276a.tar.xz
qemu-e12ed72e5c00dd3375b8bd107200e4d7e950276a.zip
bitmap: assert that start and nr are non negative
commit e1123a3b introduced a data corruption regression in the iscsi driver because it passed -1 as nr to bitmap_set and bitmap_clear. Add an assertion to catch such flaws earlier. Suggested-by: Fam Zheng <famz@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Peter Lieven <pl@kamp.de> Message-Id: <1484844230-24490-1-git-send-email-pl@kamp.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qom')
0 files changed, 0 insertions, 0 deletions