test whole program

This commit is contained in:
2024-12-30 12:59:30 +00:00
parent 5e4ae7bdf8
commit 38154796a5

View File

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