From bdd1b300f8bf540c8f237cce50e42991f94101e3 Mon Sep 17 00:00:00 2001 From: "Urabe, Shyouhei" Date: Tue, 23 Apr 2019 17:47:49 +0900 Subject: __asan_region_is_poisoned takes void * while heap->obj is a VALUE. A cast should be there. --- transient_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transient_heap.c') diff --git a/transient_heap.c b/transient_heap.c index 334bd4f320..9aad8a183d 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -807,7 +807,7 @@ transient_heap_block_update_refs(struct transient_heap* theap, struct transient_ unpoison_memory_region(header, sizeof *header, false); - void *poisoned = __asan_region_is_poisoned(header->obj, SIZEOF_VALUE); + void *poisoned = __asan_region_is_poisoned((void *)header->obj, SIZEOF_VALUE); unpoison_object(header->obj, false); header->obj = rb_gc_new_location(header->obj); -- cgit v1.2.1