Skip to content

Commit 7bc845a

Browse files
committed
Add missing utils_annotate_memory_undefined()
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent b087efe commit 7bc845a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/base_alloc/base_alloc_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ void *umf_ba_global_aligned_alloc(size_t size, size_t alignment) {
191191
return NULL;
192192
}
193193
VALGRIND_DO_MALLOCLIKE_BLOCK(ptr, size, 0, 0);
194+
utils_annotate_memory_undefined(ptr, size);
194195
return add_metadata_and_align(ptr, size, alignment);
195196
}
196197

@@ -203,6 +204,7 @@ void *umf_ba_global_aligned_alloc(size_t size, size_t alignment) {
203204
return NULL;
204205
}
205206
VALGRIND_DO_MALLOCLIKE_BLOCK(ptr, size, 0, 0);
207+
utils_annotate_memory_undefined(ptr, size);
206208
return add_metadata_and_align(ptr, size, alignment);
207209
}
208210

0 commit comments

Comments
 (0)