Compare commits

..

2 commits

3 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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.

View file

@ -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);
}