Skip to content

Conversation

@eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Jul 29, 2025

Although I am not certain what triggered it locally on my machine (ASAN bounds checks for std::vector<T> have been present for a long time...?), encountered a container-overflow AddressSanitizer warning in GridFS code due to an improper use of vector<T>::reserve() (likely to avoid zero-initializing elements?), which this PR replaces with a std::unique_ptr<T[]> and new T[] (preserving default-initialization).

@eramongodb eramongodb requested a review from kevinAlbs July 29, 2025 14:13
@eramongodb eramongodb self-assigned this Jul 29, 2025
@eramongodb eramongodb requested a review from a team as a code owner July 29, 2025 14:13
@eramongodb eramongodb merged commit d64e86b into mongodb:master Jul 29, 2025
7 of 8 checks passed
@eramongodb eramongodb deleted the cxx-asan branch July 29, 2025 14:27
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