aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-09-30 18:49:40 +0200
committerEduardo Habkost <ehabkost@redhat.com>2020-10-06 11:09:35 -0400
commitc0d67ade53a6db090a1c17676ffcdcf16052dfb4 (patch)
tree058fc8a255300f23831c57d4807b9fac37eb8ac6 /scripts/qapi/introspect.py
parentd7c5b788295426c1ef48a9ffc3432c51220f69ba (diff)
downloadqemu-c0d67ade53a6db090a1c17676ffcdcf16052dfb4.zip
qemu-c0d67ade53a6db090a1c17676ffcdcf16052dfb4.tar.gz
qemu-c0d67ade53a6db090a1c17676ffcdcf16052dfb4.tar.bz2
hw/core/qdev-properties: Use qemu_strtol() in set_mac() handler
The MACAddr structure contains an array of uint8_t. Previously if a value was out of the [0..255] range, it was silently casted and no input validation was done. Replace strtol() by qemu_strtol() -- so checkpatch.pl won't complain if we move this code later -- and return EINVAL if the input is invalid. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200930164949.1425294-3-philmd@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions