This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix a NULL pointer dereference when looking for a DESTROY method
authorNiko Tyni <ntyni@debian.org>
Tue, 19 Jan 2010 10:03:08 +0000 (11:03 +0100)
committerSteffen Mueller <smueller@cpan.org>
Tue, 19 Jan 2010 10:04:29 +0000 (11:04 +0100)
commit1f15e670edb515b744e9021b4a42a7955da83093
tree748d606ce4c3db5cebc6f0be851b6b33e6044ee6
parent1f730e6c11736bad913e605b064200a67117e898
Fix a NULL pointer dereference when looking for a DESTROY method

The empty DESTROY method optimization introduced by commit
fbb3ee5af3d would crash the interpreter if a DESTROY method
was declared but not actually defined.

This is seen in the real world with AutoLoader / AutoSplit,
where the crash defeats autoloading a DESTROY method.
sv.c
t/op/method.t