Skip to content

hw/ppc: SPI model - coverity fixes

Chalapathi V qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Fixes: Coverity CID 1558827hw/ssi/pnv_spi.c+3 -32 replies
2/2Fixes: Coverity CID 1558831hw/ssi/pnv_spi.c+1 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.34.1