mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
__asan_region_is_poisoned takes void *
while heap->obj is a VALUE. A cast should be there.
This commit is contained in:
parent
171a6ad1c1
commit
bdd1b300f8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue