Skip to content

tests: three easy Coverity fixes

Peter Maydell qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/qtest/tpm-util.c: Free memory with correct free functiontests/qtest/tpm-util.c+2 -22 replies
2/3tests/qtest/rtc-test: Remove pointless NULL checktests/qtest/rtc-test.c+2 -42 replies
3/3tests: Avoid side effects inside g_assert() argumentstests/qtest/ipmi-bt-test.c tests/qtest/ipmi-kcs-test.c+6 -34 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchStefan BergerPhilippe Mathieu-DaudéThomas HuthAlex Bennée
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] tests: three easy Coverity fixes

We recently started running Coverity on our tests/ code, which has revealed a pile of issues that we were previously blissfully unaware of. This series fixes three easy ones:
* use of free() where g_free() was meant
* unnecessary NULL check
* side effect inside g_assert() argument

thanks
-- PMM

Peter Maydell (3):
tests/qtest/tpm-util.c: Free memory with correct free function tests/qtest/rtc-test: Remove pointless NULL check
tests: Avoid side effects inside g_assert() arguments

 tests/qtest/ipmi-bt-test.c  | 6 ++++--
 tests/qtest/ipmi-kcs-test.c | 3 ++-
 tests/qtest/rtc-test.c      | 6 ++----
 tests/qtest/tpm-util.c      | 4 ++--
 4 files changed, 10 insertions(+), 9 deletions(-)
Signature · 1 line
2.20.1