From 4fd51f848a59b999427d3b941d8777ec00f0431c Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 2 Mar 2020 14:25:35 +0900 Subject: vm_cc_fill() need to clear aux. vm_cc_fill() fills CC information into stack allocated memory so it is not cleared. So we need to clear CC->aux. --- vm_callinfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_callinfo.h') diff --git a/vm_callinfo.h b/vm_callinfo.h index 9b170bb297..0f90d109b8 100644 --- a/vm_callinfo.h +++ b/vm_callinfo.h @@ -239,6 +239,7 @@ struct rb_callcache { union { const unsigned int attr_index; const enum method_missing_reason method_missing_reason; /* used by method_missing */ + VALUE v; } aux_; }; @@ -265,6 +266,7 @@ vm_cc_fill(struct rb_callcache *cc, .klass = klass, .cme_ = cme, .call_ = call, + .aux_.v = 0, }; MEMCPY(cc, &cc_body, struct rb_callcache, 1); return cc; -- cgit v1.2.1