1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mark verify functions non-sanitizable

These functions purposefully read from memory regions potentially
not handled well.  Should let sanitizers avoid checking them.
This commit is contained in:
Urabe, Shyouhei 2019-04-24 11:23:13 +09:00
parent 572f2ddff6
commit 6201a89b38

View file

@ -155,6 +155,7 @@ rb_transient_heap_dump(void)
}
#if TRANSIENT_HEAP_CHECK_MODE >= 2
ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(static void transient_heap_ptr_check(struct transient_heap *theap, VALUE obj));
static void
transient_heap_ptr_check(struct transient_heap *theap, VALUE obj)
{
@ -164,6 +165,7 @@ transient_heap_ptr_check(struct transient_heap *theap, VALUE obj)
}
}
ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(static int transient_heap_block_verify(struct transient_heap *theap, struct transient_heap_block *block));
static int
transient_heap_block_verify(struct transient_heap *theap, struct transient_heap_block *block)
{
@ -559,6 +561,7 @@ rb_transient_heap_mark(VALUE obj, const void *ptr)
}
}
ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(static const void *transient_heap_ptr(VALUE obj, int error));
static const void *
transient_heap_ptr(VALUE obj, int error)
{