Re: [Qemu-devel] [PATCHv2] qdev: Validate hex properties

2013-11-27 Thread Eric Blake
On 11/27/2013 12:52 AM, Hannes Reinecke wrote: > strtoul(l) might overflow, in which case it'll return '-1' and set > the appropriate error code. So update the calls to strtoul(l) when > parsing hex properties to avoid silent overflows. > > Cc: Peter Maydell > Cc: Eric Blake > Signed-off-by: Han

Re: [Qemu-devel] [PATCHv2] qdev: Validate hex properties

2013-11-27 Thread Andreas Färber
Am 27.11.2013 08:52, schrieb Hannes Reinecke: > strtoul(l) might overflow, in which case it'll return '-1' and set > the appropriate error code. So update the calls to strtoul(l) when > parsing hex properties to avoid silent overflows. > > Cc: Peter Maydell > Cc: Eric Blake > Signed-off-by: Hann

[Qemu-devel] [PATCHv2] qdev: Validate hex properties

2013-11-26 Thread Hannes Reinecke
strtoul(l) might overflow, in which case it'll return '-1' and set the appropriate error code. So update the calls to strtoul(l) when parsing hex properties to avoid silent overflows. Cc: Peter Maydell Cc: Eric Blake Signed-off-by: Hannes Reinecke --- hw/core/qdev-properties.c | 9 + 1