Re: [QEMU][PATCH v1] tests/qtest: xlnx-canfd-test: Fix code coverity issues

2023-07-04 Thread Peter Maydell
On Wed, 28 Jun 2023 at 21:28, Vikram Garhwal wrote: > > 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_da

[QEMU][PATCH v1] tests/qtest: xlnx-canfd-test: Fix code coverity issues

2023-06-28 Thread Vikram Garhwal
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 --- tes