diff options
-rw-r--r-- | transient_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transient_heap.c b/transient_heap.c index eb94edabf7..1bc5094a09 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -408,7 +408,7 @@ rb_transient_heap_alloc(VALUE obj, size_t req_size) RB_DEBUG_COUNTER_INC(theap_alloc); /* ptr is set up; OK to unpoison. */ - unpoison_memory_region(ptr, size, true); + unpoison_memory_region(ptr, size - sizeof *header, true); return ptr; } else { |