Skip to content

Conversation

@veeso
Copy link
Owner

@veeso veeso commented Dec 21, 2025

  • fix: Fixed deallocation trace by looking up the symbol ONLY at allocation and by storing a pointer -> Symbol table
  • fix: track ptr to symbol
  • fix: MacOS compatibility

Fixes #2

…tion and by storing a pointer -> Symbol table

The underflow issue was already solved, this pr added a map to map the ptr to the symbol name to correctly trace the deallocation

closes #2
@cocogitto-bot
Copy link

cocogitto-bot bot commented Dec 21, 2025

✔️ ea3da61...89f2a44 - Conventional commits check succeeded.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 20408682619

Details

  • 35 of 48 (72.92%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-3.0%) to 82.09%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/symbols.rs 11 12 91.67%
src/alloc.rs 24 36 66.67%
Files with Coverage Reduction New Missed Lines %
src/alloc.rs 2 66.13%
Totals Coverage Status
Change from base Build 20136967220: -3.0%
Covered Lines: 220
Relevant Lines: 268

💛 - Coveralls

@veeso veeso merged commit 047dd38 into main Dec 21, 2025
7 checks passed
@veeso veeso deleted the 2-deallocation-done-in-different-function-can-cause-underflow branch December 21, 2025 10:48
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.

deallocation done in different function can cause underflow

3 participants