Skip to content

Conversation

@alanking
Copy link
Owner

@alanking alanking commented Dec 5, 2025

Need to run full test suite

@alanking alanking force-pushed the asan.43s branch 2 times, most recently from 9ad9e23 to 0c1d542 Compare December 5, 2025 19:58
In resolveRodsTarget, when the destPath rodsPath_t is copied into targPath,
it is a shallow copy. This results in both structures pointing at the same
rodsObjStat_t. This causes problems for anybody using the function because
the targPath and destPath in the rodsPathInp_t must be freed in a complicated
manner since they are pointed at the same memory.

This commit addresses the issue by making a deep copy of the rodsPath_t. In
this way, the targPath owns its own rodsObjStat_t and can clean up in a
deterministic manner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants