[PATCH v1 0/2] hw/ppc: SPI model - coverity fixes

Chalapathi V posted 2 patches 3 months, 2 weeks ago
hw/ssi/pnv_spi.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
[PATCH v1 0/2] hw/ppc: SPI model - coverity fixes
Posted by Chalapathi V 3 months, 2 weeks ago
Hello,

In this patchset below defects detected during coverity scan for latest
spi model changes were fixed.

- CID 1558831:  Resource leaks  (RESOURCE_LEAK)
  Variable "rsp_payload" going out of scope leaks the storage it points to.
- CID 1558827:    (OVERRUN)
  Overrunning array "s->seq_op" of 8 bytes at byte offset 16 using index
  "get_seq_index(s) + 1" (which evaluates to 16).

Tested:
passed make check and make check-avocado

Chalapathi V (2):
  Fixes: Coverity CID 1558827
  Fixes: Coverity CID 1558831

 hw/ssi/pnv_spi.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.34.1