This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_newHVhv() did not correctly copy hashes with non-shared keys
authorNicholas Clark <nick@ccl4.org>
Sat, 16 Oct 2021 07:52:56 +0000 (07:52 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 20 Oct 2021 15:34:23 +0000 (15:34 +0000)
commit7c4cc0343c223680358a798ea6826c8c3a710db3
treeae5a1b05c2476ea9c6122c66700c9acf705bcd45
parent638b4d9051af3a8aa432795a1f33508001c1754e
Perl_newHVhv() did not correctly copy hashes with non-shared keys

It created a hash built with non-shared keys, but left the "shared keys"
flag set on the hash.

This hasn't been spotted in 20 years, which shows just how much we use
hashes with unshared keys.
hv.c