DAOS-16251 tests: Fix various memory issues #15147
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch fixes the following memory issues in daos_test:
IO13 (basic_byte_array) may read beyond the end of buf_out.
REBUILD6 (rebuild_snap_update_recs) may write beyond the end of
string.
ARRAY19 (test_async_io) may write beyond the end of dkey_str[].
daos_start_server can't just increment svc->rl_nr without making
sure that svc->rl_ranks matches svc->rl_nr.
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: