Skip to content

Commit 37fd114

Browse files
committed
Fix annotation in base_alloc_global
typo: undefined -> defined
1 parent 3a2c937 commit 37fd114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base_alloc/base_alloc_global.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static void *get_original_alloc(void *user_ptr, size_t *total_size,
125125
size_t *metadata_loc = (size_t *)((char *)user_ptr - ALLOC_METADATA_SIZE);
126126

127127
// mark the metadata as defined to read the size and offset
128-
utils_annotate_memory_undefined(metadata_loc, ALLOC_METADATA_SIZE);
128+
utils_annotate_memory_defined(metadata_loc, ALLOC_METADATA_SIZE);
129129

130130
size_t stored_size = *metadata_loc & ((1ULL << 32) - 1);
131131
size_t ptr_offset_from_original = *metadata_loc >> 32;

0 commit comments

Comments
 (0)