Re: [PATCH] buf: protect against integer overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/6/24 Eric Blake <eblake@xxxxxxxxxx>:
> It's unlikely that we'll ever want to escape a string as long as
> INT_MAX/6, but adding this check can't hurt.
>
> * src/util/buf.c (virBufferEscapeSexpr, virBufferEscapeString):
> Check for (unlikely) overflow.
> ---
>  src/util/buf.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

ACK.

-- 
Matthias Bolte
http://photron.blogspot.com

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]