YDWE icon indicating copy to clipboard operation
YDWE copied to clipboard

lua引擎崩溃的bug

Open ChrisCatCP opened this issue 3 years ago • 1 comments

lua引擎的jassbind.cpp中

		void             push_string(lua_State* L, jass::jstring_t value)
		{
			if (value < 0x10000) {
				value = get_jass_vm()->string_table->get(value);
			}
			lua_pushstring(L, jass::from_trigstring(jass::from_string(value)));
		}

这里判断的小于0x10000有问题 好像是为了兼容 全局变量读取? 索引大于0x10000会导致崩溃

ChrisCatCP avatar Jul 22 '21 08:07 ChrisCatCP

忘了

actboy168 avatar Jul 23 '21 01:07 actboy168