Commit graph

56 commits

Author SHA1 Message Date
ba830faf7d Update Changelog.md 2024-11-22 13:40:56 +09:00
45e0dc3fab Version 2.12 2024-11-22 13:24:21 +09:00
9ea25be25f Revert "Minor refactoring of free"
This reverts commit 411e81b614.
2024-11-22 13:22:29 +09:00
cf21c26bbb Version 2.11 2024-11-22 11:36:59 +09:00
f8ee249ca2 Update Changelog.md 2024-11-14 13:44:28 +09:00
411e81b614 Minor refactoring of free 2024-11-14 13:40:59 +09:00
5c5bfe1959 Update Changelog.md 2024-11-14 12:28:25 +09:00
8fc4e79cf9 Update Changelog.md 2024-11-14 12:27:31 +09:00
3b44724ac9 Add stat counts for bad reallocs and frees 2024-11-14 12:25:07 +09:00
1a19d58aeb Update Changelog.md 2024-11-14 12:19:40 +09:00
7e4b1b7dc4 Remove dependency on pthread in CMakeLists.txt 2024-11-14 12:02:32 +09:00
dc3704ac75 Update CMakeLists.txt
Version to 2.10
2024-11-14 01:29:36 +00:00
149abcfdf3 Update Changelog.md
Latest to version 2.10
2024-11-14 01:29:01 +00:00
5417870cb5 Update Changelog.md 2024-11-13 15:47:52 +09:00
df0d861bfc Add malloc'd info to head of list, not tail
Malloc'd memory tends to be deallocated in reverse order of allocation,
so it would make more sense to push new entries to the head, since
removals traverse the list from the head-to-tail.
2024-11-13 14:31:45 +09:00
337c9a2f79 Update README.md 2024-11-12 20:34:25 +09:00
554c46888e Update CMakeLists.txt, cmake_minimum_required 3.10 2024-11-12 20:23:11 +09:00
e0ddd55c66 Update README.md
Attempt to fix formatting.
2024-11-12 20:15:14 +09:00
1792faaafe Update Changelog.md, version 2.9 2024-11-12 20:11:02 +09:00
386a4320bf Update README.md 2024-11-12 20:05:42 +09:00
a6f716c8a2 Add checks/output-stats for NULL-ptr frees 2024-11-12 20:02:47 +09:00
14301c372d Update Changelog.md, version 2.8 2024-11-12 16:33:16 +09:00
293b18e4bf Avoid segfault on exit(...)
Avoids segfault by not freeing the internal structure handling memory
allocations. When the process ends, the OS should reclaim all memory,
even if it isn't free'd during process execution.
2024-11-12 16:32:23 +09:00
33d3adba3f Cleanup of Stats struct 2024-11-12 16:10:10 +09:00
4d3d6c9168 Use atexit() instead of onexit() 2024-11-12 15:29:17 +09:00
c1021b9943 Set version to 2.7 in CMakeLists.txt 2024-11-12 15:03:21 +09:00
8c6561cbef Update Changelog.md 2024-11-12 14:58:16 +09:00
c4f06b799e Add back setting of member variable in init fn 2024-11-12 14:57:49 +09:00
f8540d8cde Update Changelog.md 2024-11-12 14:48:38 +09:00
e063957eb6 Initialize ptr in constructor of handler 2024-11-12 14:46:36 +09:00
5a7db8fd09 Update Changelog.md, version 2.6 2024-11-12 14:45:24 +09:00
394bfc8963 Use std::recursive_mutex instead of pthread_mutex 2024-11-12 14:43:57 +09:00
d4c47f871b Version 2.5 2024-06-27 14:46:06 +09:00
563d6ad570 Add support for realloc 2024-06-27 14:45:40 +09:00
23b851d8f3 Version 2.4, fixes
Fix free not actually calling real_free.

Fix free dereferencing null ptr.

TODO fix bug where tracked data is not correctly removed during free.
2024-06-27 14:00:39 +09:00
3169bc0458 Update Changelog, version 2.3 2024-06-26 14:02:55 +09:00
882732a3ad Add ids to allocated memory to be printed later 2024-06-26 14:01:51 +09:00
8f1bf7a5a8 Update README.md 2024-06-06 15:44:47 +09:00
c851ec6a07 Check for ANOTHER_MEMCHECK_QUIET env var, refactor
Now, if ANOTHER_MEMCHECK_QUIET environment variable is defined, do not
print output when malloc/calloc/free is called.

Minor refactoring: remove unused constexpr declarations in header.

Bump version to 2.2 .

Update Changelog.md .
2024-06-06 15:16:42 +09:00
dcc9ae38c5 Bump to version 2.1, update Changelog.md 2024-06-04 15:55:52 +09:00
0e2545ecea Fix incorrect storing of size when using calloc 2024-06-04 15:54:45 +09:00
67d20b4673 Update README.md 2024-06-04 15:50:00 +09:00
3d03ec1e9b Bump version to 2.0, update Changelog.md 2024-06-04 15:43:30 +09:00
4d000a87e0 Use pthreads to mutex-lock malloc/calloc/free 2024-06-04 15:40:57 +09:00
eb716bf65a Impl. checking calloc as well 2024-06-04 15:15:05 +09:00
0e447dc3be Refactorings
Internally use doubly-linked list instead of singly-linked list. Also
minor fixes related to changing use to doubly-linked list.

Removed unnecessary comments.

Move list add/remove code to designated functions.
2024-06-04 15:08:33 +09:00
e33b13a80b Add .gitignore 2024-06-04 14:54:11 +09:00
81ffe0d26d Remove unused type definition
The type definition was a remnant of attempting to use
std::unordered_map, but that used whatever the "malloc" symbol pointed
to.
2024-06-04 14:53:11 +09:00
fd0da26f83 Update README.md 2024-06-04 12:24:29 +09:00
b072c3bbbd Update README.md 2024-06-04 12:21:59 +09:00