summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/deconstruct_spec.rb
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2021-02-10 09:24:04 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:28 -0400
commit99d285a75c8fd1c3b5662982286d4026f9bed190 (patch)
treec23519b41e8e2a0f023ea41615c669c8a8e4d8a1 /spec/ruby/core/array/deconstruct_spec.rb
parenta8827e5c5fb1e3218e7f0d5ac792482c0d65f8f3 (diff)
fix: ensure add_incoming allocates the proper length memory
Without this fix, valgrind reports for zero-length blocks: ==149294== Invalid write of size 4 ==149294== at 0x408121: add_incoming (ujit_core.c:173) ==149294== by 0x408121: gen_block_version (ujit_core.c:286) ==149294== by 0x40873C: gen_entry_point (ujit_core.c:303) ==149294== by 0x3609DF: rb_ujit_compile_iseq (ujit_iface.c:319) ==149294== by 0x33BD2F: mjit_exec (mjit.h:158) ==149294== by 0x33BD2F: rb_vm_exec (vm.c:2167) ... ==149294== Address 0x11278850 is 0 bytes inside a block of size 1 alloc'd ==149294== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==149294== by 0x40811B: add_incoming (ujit_core.c:171) ==149294== by 0x40811B: gen_block_version (ujit_core.c:286) ==149294== by 0x40873C: gen_entry_point (ujit_core.c:303) ==149294== by 0x3609DF: rb_ujit_compile_iseq (ujit_iface.c:319) ==149294== by 0x33BD2F: mjit_exec (mjit.h:158) ==149294== by 0x33BD2F: rb_vm_exec (vm.c:2167)
Diffstat (limited to 'spec/ruby/core/array/deconstruct_spec.rb')
0 files changed, 0 insertions, 0 deletions