| Summary: | malloc trace does not print free size or alignment | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Paul Floyd <pjfloyd> |
| Component: | general | Assignee: | Paul Floyd <pjfloyd> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
commit dd3ac939d11bc11366aefb488c2321217bb6c2a7 (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Thu Nov 13 20:32:28 2025 +0100 Bug 512037 - malloc trace does not print free size or alignment |
Just one example of this: #define FREE_SIZED(, fnname, vg_replacement, tag) \ contains MALLOC_TRACE(#fnname "(%p)\n", p ); \ That should be MALLOC_TRACE(#fnname "(%p, %z)\n", p, size ); \ I also see that there are lots of casts to ULong and %llu format strings. No casts and %zu should be enough. Lastly some of the uses of MALLOC_TRACE add "size" and "al" strings before the values. If they are never ambiguous I'll remove them.