避免 sharedata 误用大于32位数字做 key 时,可能导致程序崩溃 (#1820)

Co-authored-by: shencyx <yixin.cen@alibaba-inc.com>
This commit is contained in:
shencyx
2023-11-07 11:52:58 +08:00
committed by GitHub
parent 0e6423484f
commit f7453973f8

View File

@@ -306,6 +306,7 @@ convtable(lua_State *L) {
for (i=0;i<sizehash;i++) {
tbl->hash[i].valuetype = VALUETYPE_NIL;
tbl->hash[i].nocolliding = 0;
tbl->hash[i].next = -1;
}
tbl->sizehash = sizehash;