lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

云风 Cloud Wu <>于2017年2月9日周四 下午5:53写道:
Dirk Laurie <>于2017年2月9日周四 下午5:46写道:

Please show us that corruption string that you can build, and the
call to the utf8 library that then corrupts the heap. I don't believe you.

My fault. Lua append \0 into every string, so it's safe . Sorry.

But there is another problem.

local s = "\xE4\xBA"
assert(utf8.len(s, 1, 2) == utf8.len(s .. "\x91",1,2)) -- failed