Skip to content

Conversation

@vishvish
Copy link
Owner

@vishvish vishvish commented Feb 2, 2025

No description provided.

@vishvish vishvish changed the title Develop Fix use of memory after being freed Feb 2, 2025
- 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
@vishvish vishvish merged commit e596760 into main Feb 2, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2025

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