-
Notifications
You must be signed in to change notification settings - Fork 2
Fix use of memory after being freed #4
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Update TM_DECLARE_TAG macro to use static inline variable - Remove Tag() function implementation from tmPart - Update TM_IMPLEMENT_TAG macro to remove Tag() function - Maintain backward compatibility while modernizing code
- Update tmNode TagStr() to use inline variable - Update tmPart TagStr() to use inline variable - Maintain consistent approach with Tag() implementation
- Remove duplicate tag definition that was already defined by TM_DECLARE_TAG macro - Rename tagStr to nodeTagStr for clarity - Keep TagStr implementation using inline variable
- Remove redundant tag definition in tmNode.cpp - Update StringT constructor to assign directly to tag variable - Convert TagStr() implementations to use inline variables - Maintain backward compatibility while modernizing code
- Store pointers in local variables before potential deletion in DstRemoveMeAsDpptrSrc - Add null checks before calling DstRemoveMeAsDpptrSrc - Update pointer management in tmDpptr and tmDpptrArray - Reorder operations to ensure safe pointer handling
- Update pointer declarations to use init-statements in if conditions - Improve scope control and safety in pointer handling - Modernize code while maintaining functionality
- Update DstRemoveMeAsDpptrSrc to store const pointers before operations - Add validation of stored pointers before use - Rename shadowing variables in TagToStr - Improve pointer safety in dangle-proof pointer implementation
- Update pointer handling in tmDpptr and tmDpptrArray - Store pointers as const before operations - Add pointer validation before use - Improve safety in dangle-proof pointer implementation
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



No description provided.