You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
glib_compat/glib_compact: Clear the buffer in g_hash_table_resize
There has a hidden danger in g_hash_table_resize function:
The g_hash_table_resize, it seems to resize the has table, and write the
old value to the new hash table. It seems look for the empty items in
the new_nodes, and if the new_nodes is not be cleared, it maybe naver
found the empty items. So I added a line under the g_new0 function, and
I think clearing new_nodes every time may improve the performance.
Added a memset to clear the new_nodes to fix this problem.
Signed-off-by: Chao Li <lichao@loongson.cn>
0 commit comments