You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/ipmi
Corey Minyard 3fde641e72 ipmi:smbus: Add a check around a memcpy
In one case:

  memcpy(sid->inmsg + sid->inlen, buf, len);

if len == 0 then sid->inmsg + sig->inlen can point to one past the inmsg
array if the array is full.  We have to allow len == 0 due to some
vagueness in the spec, but we don't have to call memcpy.

Found by Coverity.  This is not a problem in practice, but the results
are technically (maybe) undefined.  So make Coverity happy.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
2 years ago
..
Kconfig ipmi: Add an SMBus IPMI interface 5 years ago
ipmi.c Mark remaining global TypeInfo instances as const 3 years ago
ipmi_bmc_extern.c Remove superfluous timer_del() calls 4 years ago
ipmi_bmc_sim.c ipmi/sim: fix watchdog_expired data type error in IPMIBmcSim struct 3 years ago
ipmi_bt.c ipmi: Allow a size value to be passed for I/O space 5 years ago
ipmi_kcs.c ipmi: Allow a size value to be passed for I/O space 5 years ago
isa_ipmi_bt.c acpi: ipmi: use AcpiDevAmlIf interface to build IPMI device descriptors 2 years ago
isa_ipmi_kcs.c acpi: ipmi: use AcpiDevAmlIf interface to build IPMI device descriptors 2 years ago
meson.build meson: convert hw/ipmi 4 years ago
pci_ipmi_bt.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
pci_ipmi_kcs.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
smbus_ipmi.c ipmi:smbus: Add a check around a memcpy 2 years ago