diff options
author | Vladimir Sementsov-Ogievskiy | 2019-09-10 11:03:10 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2019-10-08 15:27:35 +0200 |
commit | d38d6de2a1fe209c849e8392f99e214d0a2db319 (patch) | |
tree | 3bb15c4a5cb02248b801df7375821ad0f42ddc95 /qemu-img.c | |
parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
download | qemu-d38d6de2a1fe209c849e8392f99e214d0a2db319.tar.gz qemu-d38d6de2a1fe209c849e8392f99e214d0a2db319.tar.xz qemu-d38d6de2a1fe209c849e8392f99e214d0a2db319.zip |
util/ioc.c: try to reassure Coverity about qemu_iovec_init_extended
Make it more obvious, that filling qiov corresponds to qiov allocation,
which in turn corresponds to total_niov calculation, based on mid_niov
(not mid_len). Still add an assertion to show that there should be no
difference.
[Added mingw "error: 'mid_iov' may be used uninitialized in this
function" compiler error fix suggested by Vladimir.
--Stefan]
Reported-by: Coverity (CID 1405302)
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190910090310.14032-1-vsementsov@virtuozzo.com
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20190910090310.14032-1-vsementsov@virtuozzo.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
fixup! util/ioc.c: try to reassure Coverity about qemu_iovec_init_extended
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions