[libvirt] [PATCHv2 1/3] virsh: avoid strtol

Laine Stump laine at laine.org
Fri Apr 20 00:28:51 UTC 2012


On 04/19/2012 02:24 PM, Eric Blake wrote:
> We were forgetting to check errno for overflow.
>
> * tools/virsh.c (get_integer_keycode, vshCommandOptInt)
> (vshCommandOptUInt, vshCommandOptUL, vshCommandOptLongLong)
> (vshCommandOptULongLong): Rewrite to be safer.
> ---
>
> v2: get_integer_keycode still must reject 0
>
>  tools/virsh.c |   67 +++++++++++++++++----------------------------------------
>  1 files changed, 20 insertions(+), 47 deletions(-)

ACK.





More information about the libvir-list mailing list