summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-08-13 15:04:19 +0900
committerdearblue <[email protected]>2021-08-13 15:04:19 +0900
commit01da5e13920989b6c7ab97900659f570bdcb78f2 (patch)
tree5e0b9eea1c7ab20c8e018b54dce9f6f4af6ff36e /src/opcode.h
parent9e74aad43c8a7652c3cc0ffdc282c66ea866999b (diff)
downloadmruby-01da5e13920989b6c7ab97900659f570bdcb78f2.tar.gz
mruby-01da5e13920989b6c7ab97900659f570bdcb78f2.zip
Check the class with `I` specifier of `mrb_get_args()`
Previously, the `I` specifier only checked if the object was `MRB_TT_ISTRUCT`. So it was at risk of getting pointers to different C structs if multiple classes were to use the `MRB_TT_ISTRUCT` instance. Change this behavior and change the C argument corresponding to the `I` specifier to `(void *, struct RClass)`. This change is not compatible with the previous mruby. Please note that if the user uses the previous specifications, `SIGSEGV` may occur or the machine stack may be destroyed. resolve #5527
Diffstat (limited to 'src/opcode.h')
0 files changed, 0 insertions, 0 deletions