diff options
author | Vikram Garhwal <vikram.garhwal@amd.com> | 2023-06-28 13:27:58 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-07-06 13:26:43 +0100 |
commit | b52aa865259f8e26125333a178c0a9364d8ae4da (patch) | |
tree | 667405c8f8a52b3af3d6fb30a06e16922c026676 /event-loop-base.c | |
parent | 9719f125b803f4e0fda834cd74a60dfa4ca398e2 (diff) |
tests/qtest: xlnx-canfd-test: Fix code coverity issues
Following are done to fix the coverity issues:
1. Change read_data to fix the CID 1512899: Out-of-bounds access (OVERRUN)
2. Fix match_rx_tx_data to fix CID 1512900: Logically dead code (DEADCODE)
3. Replace rand() in generate_random_data() with g_rand_int()
Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com>
Message-id: 20230628202758.16398-1-vikram.garhwal@amd.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'event-loop-base.c')
0 files changed, 0 insertions, 0 deletions