diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-16 01:14:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-16 01:14:20 +0000 |
commit | 389ea73014d8e7ed67ca289679d4aa50a375a5ef (patch) | |
tree | 48bce20cd541ea89e5052741b23788df449702a4 /iseq.c | |
parent | 9aeb74d0de8004440ddd50f1c20417d44b742ecd (diff) | |
download | ruby-389ea73014d8e7ed67ca289679d4aa50a375a5ef.tar.gz |
compile.c: check funcptr
* compile.c (iseq_build_from_ary_body): cannot load dumped funcptr.
* iseq.c (iseq_data_to_ary): cannot dump funcptr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1973,6 +1973,9 @@ iseq_data_to_ary(rb_iseq_t *iseq) rb_ary_push(ary, val); } break; + case TS_FUNCPTR: + rb_ary_push(ary, Qnil); + break; default: rb_bug("unknown operand: %c", insn_op_type(insn, j)); } |