Compare commits
2 commits
67d20b4673
...
dcc9ae38c5
Author | SHA1 | Date | |
---|---|---|---|
dcc9ae38c5 | |||
0e2545ecea |
3 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.7)
|
||||
project(AnotherMemCheck)
|
||||
|
||||
set(AnotherMemCheck_VERSION 2.0)
|
||||
set(AnotherMemCheck_VERSION 2.1)
|
||||
set(AnotherMemCheck_SOVERSION 2)
|
||||
|
||||
set(AnotherMemCheck_SOURCES
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## Verison 2.1
|
||||
|
||||
Previous implementation did not fully account for total size of a call to
|
||||
calloc. This version should fix this.
|
||||
|
||||
## Version 2.0
|
||||
|
||||
Minor refactorings.
|
||||
|
|
|
@ -105,7 +105,7 @@ namespace SC_AM_Internal {
|
|||
if (address != nullptr) {
|
||||
Malloced *data = reinterpret_cast<Malloced*>(real_malloc(sizeof(Malloced)));
|
||||
data->address = address;
|
||||
data->size = size;
|
||||
data->size = n * size;
|
||||
ListNode::add_to_list(malloced_list_tail, data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue