Preserve provenance through pointer offsetting

This commit is contained in:
Nathaniel Filardo
2019-04-26 17:23:22 +01:00
parent 00268fc2ad
commit 261249d9cb
3 changed files with 4 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ void test_external_pointer()
for (size_t offset = 0; offset < size; offset += 17)
{
void* p2 = (void*)((size_t)p1 + offset);
void* p2 = pointer_offset(p1, offset);
void* p3 = Alloc::external_pointer(p2);
void* p4 = Alloc::external_pointer<End>(p2);
UNUSED(p3);