mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
避免 sharedata 误用大于32位数字做 key 时,可能导致程序崩溃 (#1820)
Co-authored-by: shencyx <yixin.cen@alibaba-inc.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user