summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-01-28 21:15:31 +0900
committerdearblue <[email protected]>2021-01-28 21:15:31 +0900
commit3d8a8fb6613f177416cc09e81e2a0082db006926 (patch)
treeefa0f9a4aa5182b433e95d5923fa8ec7f1474b13 /include
parentbb42c1b286844e37aa8110e1b2d9b5dd9eff8f3e (diff)
downloadmruby-3d8a8fb6613f177416cc09e81e2a0082db006926.tar.gz
mruby-3d8a8fb6613f177416cc09e81e2a0082db006926.zip
Check first `0` when converting symbols into strings
This was because it caused `SIGSEGV` when `mruby -v` displayed an unnamed variable. ```console % bin/mruby -ve 'call { |(a, b)| }' ...SNIP... irep 0x8007d0050 nregs=3 nlocals=1 pools=0 syms=1 reps=1 iseq=12 file: -e 1 000 OP_LOADSELF R1 1 002 OP_BLOCK R2 I(0:0x8007d00a0) 1 005 OP_SENDB R1 :call 0 1 009 OP_RETURN R1 1 011 OP_STOP irep 0x8007d00a0 nregs=6 nlocals=5 pools=0 syms=0 reps=0 iseq=29 local variable names: zsh: segmentation fault (core dumped) bin/mruby -ve 'call { |(a, b)| }' ```
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions