dr_checker
dr_checker copied to clipboard
Memory leakage and double free
Good work but the allocated memory seems handled not very well, there are a few memory errors.
-
double free https://github.com/ucsb-seclab/dr_checker/blob/speedy/llvm_analysis/MainAnalysisPasses/SoundyAliasAnalysis/include/AliasObject.h#L251 This line only free the memory, the vector still has the element.
-
Memory leaking https://github.com/ucsb-seclab/dr_checker/blob/speedy/llvm_analysis/MainAnalysisPasses/SoundyAliasAnalysis/include/ModuleState.h#L131
For the double free, although the vector is cleared after the delete operation, a double free is still triggered when cleaning up the global state.
Any help is appreciated.