Fix rechaining of pseudo-resurrected string keys.
commit046129dbdda5261c1b17469a2895a113d14c070a
authorMike Pall <mike>
Tue, 27 Feb 2018 22:02:23 +0000 (27 23:02 +0100)
committerMike Pall <mike>
Tue, 27 Feb 2018 22:02:23 +0000 (27 23:02 +0100)
tree673301374959c5ce16b7ebb8ab44b135c8187094
parent03cd5aa749c1bc3bb4b7d4289236b6096cb3dc85
Fix rechaining of pseudo-resurrected string keys.

This is a serious bug. But extremely hard to reproduce, so it went
undetected for 8 years. One needs two resurrections with different
main nodes, which are both in a hash chain which gets relinked on
key insertion where the colliding node is in a non-main position. Phew.

Thanks to lbeiming.
src/lj_tab.c