[Libvir] detect overflow in string-to-int conversion

Daniel Veillard veillard at redhat.com
Wed Oct 24 14:22:37 UTC 2007


On Wed, Oct 24, 2007 at 03:52:22PM +0200, Jim Meyering wrote:
> Hi,
> 
> Not a big deal, but it's better not to accept a bogus
> "4294967297" and silently map it to "1".
> 
> 	Don't accept an arbitrarily-long string of digits.
>         * src/xml.c (parseNumber): Detect overflow.

  Right, thanks !
I just fully reparenthesized the test before applying. I also reindented
the full module since there were some misleading indentations. It's commited,

  thanks a lot !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list