1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

compile.c: initialize LABEL fields

* compile.c (new_label_body): initialize bit fields, since
  compile_data_alloc does not clear the memory.  [Bug #12082]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-04-12 02:51:20 +00:00
parent 057cf38cd7
commit 6648d61578
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Apr 12 11:51:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (new_label_body): initialize bit fields, since
compile_data_alloc does not clear the memory. [Bug #12082]
Mon Apr 11 20:18:43 2016 Koichi Sasada <ko1@atdot.net> Mon Apr 11 20:18:43 2016 Koichi Sasada <ko1@atdot.net>
* vm_backtrace.c (frame2klass): filter only for imemo_ment. * vm_backtrace.c (frame2klass): filter only for imemo_ment.

View file

@ -998,6 +998,8 @@ new_label_body(rb_iseq_t *iseq, long line)
labelobj->sc_state = 0; labelobj->sc_state = 0;
labelobj->sp = -1; labelobj->sp = -1;
labelobj->refcnt = 0; labelobj->refcnt = 0;
labelobj->set = 0;
labelobj->rescued = LABEL_RESCUE_NONE;
return labelobj; return labelobj;
} }