Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid memory access issue in g++ builds #228

Merged
merged 4 commits into from
May 19, 2024
Merged

Conversation

vincentlaucsb
Copy link
Owner

Fix invalid memory access issues in g++ builds caused when accessing CSVField methods while using the CSVRow reverse iterator.

This was caused by a workaround to previous versions of g++ not supporting the use of std::shared_ptr as a pointer type in iterators, thus requiring the fallback use of raw pointers (which would cause the std::shared_ptr<CSVField> to go out of scope and get deleted.

Now that newer versions of g++ don't have this problem, we can remove the dubious workaround.

image

@vincentlaucsb vincentlaucsb merged commit 3a3dc72 into master May 19, 2024
4 checks passed
@vincentlaucsb vincentlaucsb deleted the memory-fix-gcc branch May 19, 2024 23:44
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.

1 participant