Skip to content

Commit

Permalink
utils: Fix ddb_vos_tests buffer overflow etc
Browse files Browse the repository at this point in the history
Skip-build-leap15-icc: true
Skip-build-ubuntu20-rpm: true
Skip-nlt: true
Skip-unit-test-memcheck: true
Skip-func-test-vm-valgrind: true
Skip-fault-injection-test: true
Allow-unstable-test: true
Signed-off-by: Li Wei <[email protected]>
Required-githooks: true
  • Loading branch information
liw committed Aug 26, 2024
1 parent eb191db commit f72c19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/ddb/tests/ddb_vos_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ get_dkey_from_idx_tests(void **state)
assert_success(dv_get_dkey(coh, uoid, 0, &dkey));
i = 1;
while (SUCCESS(dv_get_dkey(coh, uoid, i, &dkey2))) {
assert_string_not_equal(dkey.iov_buf, dkey2.iov_buf);
assert_key_not_equal(dkey, dkey2);
i++;
daos_iov_free(&dkey2);
}
Expand Down Expand Up @@ -330,8 +330,8 @@ get_akey_from_idx_tests(void **state)

assert_success(dv_get_akey(coh, uoid, &dkey, 0, &akey));
i = 1;
while (SUCCESS(dv_get_dkey(coh, uoid, i, &akey2))) {
assert_string_not_equal(akey.iov_buf, akey2.iov_buf);
while (SUCCESS(dv_get_akey(coh, uoid, &dkey, i, &akey2))) {
assert_key_not_equal(akey, akey2);
i++;
daos_iov_free(&akey2);
}
Expand Down

0 comments on commit f72c19a

Please sign in to comment.