commit | 6b1de1484ee2f80d5795358ea79e90c3ceb64167 | [log] [tgz] |
---|---|---|
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | Fri Apr 07 19:20:13 2017 -0300 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Sun May 07 09:57:51 2017 +0300 |
tree | 8d523f16245945ffc4dce0438cf93a0d98bff49d | |
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>