Skip to content

Commit 92c0f21

Browse files
committed
remove unused lines
1 parent 0b156e3 commit 92c0f21

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/verify_tag_ptr_test.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ int main(int argc, char *argv[]) {
1919
void *up = iso_alloc_untag_ptr(p, _zone_handle);
2020
iso_free_from_zone(up, _zone_handle);
2121
iso_flush_caches();
22+
/* The free() path will have changed the tag for this pointer */
2223
iso_alloc_verify_ptr_tag(p, _zone_handle);
23-
24-
p = iso_alloc_untag_ptr(p, _zone_handle);
25-
26-
/* This should crash on systems without TBI as p is
27-
* already free and the untagging operation should
28-
* result in a bad pointer */
29-
memset(p, 0x41, SIZE);
30-
3124
iso_alloc_destroy_zone(_zone_handle);
3225

3326
#if !MEMORY_TAGGING

0 commit comments

Comments
 (0)