]> Git Repo - qemu.git/commit - util/iov.c
util/ioc.c: try to reassure Coverity about qemu_iovec_init_extended
authorVladimir Sementsov-Ogievskiy <[email protected]>
Tue, 10 Sep 2019 09:03:10 +0000 (12:03 +0300)
committerStefan Hajnoczi <[email protected]>
Tue, 8 Oct 2019 13:27:35 +0000 (14:27 +0100)
commitd38d6de2a1fe209c849e8392f99e214d0a2db319
tree3bb15c4a5cb02248b801df7375821ad0f42ddc95
parent560009f2c8b57b7cdd31a5693ea86ab369382f49
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 <[email protected]>
Message-id: 20190910090310[email protected]
Suggested-by: Peter Maydell <[email protected]>
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20190910090310[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
fixup! util/ioc.c: try to reassure Coverity about qemu_iovec_init_extended
util/iov.c
This page took 0.025543 seconds and 4 git commands to generate.