Skip to content

Commit

Permalink
Update libmemalloc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelVVolkmer authored Dec 29, 2024
1 parent 04d7c4d commit b5bee4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libmemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ int MEM_validPointerCheck(mem_allocator_t *allocator, void *ptr)

block_header_t *block = NULL;

uintptr_t user_ptr = 0u;
uintptr_t heap_start = 0u;
uintptr_t heap_end = 0u;

/* Check deference/argument boundaries */
if (allocator == NULL)
{
Expand Down Expand Up @@ -560,7 +564,7 @@ void *MEM_allocatorMalloc(mem_allocator_t *allocator, size_t size, const char *f
/* Definition of Function Variables */
int ret = 0u;

size_t aligned_size = 0u
size_t aligned_size = 0u;

void *user_ptr = NULL;
block_header_t *block = NULL;
Expand Down

0 comments on commit b5bee4d

Please sign in to comment.