test whole program
This commit is contained in:
@@ -188,9 +188,6 @@ void* MALLOCCHERI(size_t sz)
|
||||
{
|
||||
sz = __builtin_align_up(sz, _Alignof(max_align_t));
|
||||
|
||||
// printf("%d \n", sz);
|
||||
printf("%d Malloc counter new\n", sz);
|
||||
|
||||
if (sz > MallocCounter) {
|
||||
printf("%d Threashold exceeded\n", sz);
|
||||
INITREGULARALLOC(1);
|
||||
@@ -198,6 +195,9 @@ void* MALLOCCHERI(size_t sz)
|
||||
|
||||
MallocCounter -= sz;
|
||||
|
||||
// printf("%d \n", sz);
|
||||
printf("%d Malloc counter new\n", MallocCounter);
|
||||
|
||||
void *ptrLink = &ptr[MallocCounter];
|
||||
ptrLink = cheri_setbounds(ptrLink, sz);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user