tests: three easy Coverity fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tests/qtest/tpm-util.c: Free memory with correct free functiontests/ | +2 | 2 replies | |
| 2/3 | tests/qtest/rtc-test: Remove pointless NULL checktests/ | +2 | 2 replies | |
| 3/3 | tests: Avoid side effects inside g_assert() argumentstests/ tests/ | +6 | 4 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Stefan Berger | Philippe Mathieu-Daudé | Thomas Huth | Alex Bennée |
|---|---|---|---|---|
| 1/3 | R-b | R-b | ||
| 2/3 | R-b | R-b | ||
| 3/3 | R-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.
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