aboutsummaryrefslogtreecommitdiff
path: root/include/hw/intc/arm_gicv3_common.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-06-04 12:14:19 -0300
committerMichael Roth <mdroth@linux.vnet.ibm.com>2018-06-21 10:18:16 -0500
commit17e3fcbc51eddf06f50d59fb96a21a3298b25cd3 (patch)
treedddf391912f06bfe5b7e9fd61f1f10d35ca01eba /include/hw/intc/arm_gicv3_common.h
parent9e4fa091eeb29e2363712c886cc1e9ad78631887 (diff)
usb: correctly handle Zero Length Packets
USB Specification Revision 2.0, §5.5.3: The Data stage of a control transfer from an endpoint to the host is complete when the endpoint does one of the following: • Has transferred exactly the amount of data specified during the Setup stage • Transfers a packet with a payload size less than wMaxPacketSize or transfers a zero-length packet" hw/usb/redirect.c:802:9: warning: Declared variable-length array (VLA) has zero size uint8_t buf[size]; ^~~~~~~~~~~ ~~~~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180604151421.23385-2-f4bug@amsat.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit bf78fb1c1b61a819a47f7a1dbecf9934b9f32a0d) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include/hw/intc/arm_gicv3_common.h')
0 files changed, 0 insertions, 0 deletions