On 01/31/2017 10:09 AM, Alberto Garcia wrote: > The type of qiov->size is size_t but the QEMU I/O code uses int all > over the place to measure request sizes. Overflows are likely going > to be detected by any of the many assert(qiov->size == nbytes), where > nbytes is an int, but let's add proper checks in the QEMUIOVector > initialization, which is where it belongs. > > Signed-off-by: Alberto Garcia <be...@igalia.com> > --- > util/iov.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature