| Summary: | Detect the potential of mis-malloc/free in different libraries | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Greg Maxwell <gmaxwell> |
| Component: | memcheck | Assignee: | Julian Seward <jseward> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | pjfloyd, sam, tom |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Greg Maxwell
2014-02-26 20:12:16 UTC
The only problem is that it is completely normal for memory allocated by one shared library to be freed by another - many functions in glibc return pointers to memory allocated with malloc that the caller is expected to free for example. The problem isn't malloc and family being called _from_different libraries. The problem is if there are calls to versions of malloc _in_ different libraries. Do we have a fast way to tell which library (or exe) contains used allocation functions? |