Skip to content

Commit

Permalink
修正可能会引发stack数组越界的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoqiang-t4f committed Jun 9, 2020
1 parent 4a4a694 commit 9698179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ILRuntime/Runtime/Intepreter/ILIntepreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public object Run(ILMethod method, object instance, object[] p)
/// 为确保性能,暂时先确保开发的时候,安全检查完备。
/// 当然手机端运行时可能会出现为空的类对象可正常调用成员函数,导致成员函数里面访问成员变量报错时可能使得根据Log跟踪BUG时方向错误。
#if DEBUG && !DISABLE_ILRUNTIME_DEBUG
var thisObj = mStack[arg->Value];
var thisObj = RetriveObject(arg, mStack);
if (thisObj == null)
throw new NullReferenceException();
#endif
Expand Down

0 comments on commit 9698179

Please sign in to comment.