This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Make sure invlist_clone length set correctly
authorKarl Williamson <public@khwilliamson.com>
Sun, 27 Nov 2011 22:41:26 +0000 (15:41 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:35 +0000 (09:58 -0700)
commit6d47fb3d9b725b5fe2868e43f608848ba0abad8d
treebe2cc24c7b1a6707b33114c4482f3866b563570a
parentfd05e0032ccb3ab799c67a60af058aba380a5339
regcomp.c: Make sure invlist_clone length set correctly

The cloned inversion list was getting initialized with sufficient space,
but because a Copy was used, it did not know how much of that space is
occupied.  There are no tests, because this was found through valgrind,
and it otherwise depends on whatever was in the uninitialized data at
the time
regcomp.c