diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2017-04-07 19:20:13 -0300 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2017-05-07 09:57:51 +0300 |
commit | 6b1de1484ee2f80d5795358ea79e90c3ceb64167 (patch) | |
tree | 8d523f16245945ffc4dce0438cf93a0d98bff49d /device_tree.c | |
parent | 46bbbec2d30c3d791a6d328e5ef861694ff3eafb (diff) |
usb-ccid: make ccid_write_data_block() cope with null buffers
static code analyzer complain:
hw/usb/dev-smartcard-reader.c:816:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
memcpy(p->abData, data, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'device_tree.c')
0 files changed, 0 insertions, 0 deletions