-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix perl #132902 - Carp: avoid infinite loops when checking for overl…
…oads We use $obj->can("((") to see if a package has enabled overloads, however in some cases can() is overridden with a custom implementation, which may be unaware of these methods and then call Carp itself. This then results in an infinite loop. An example is Class::Std v0.013. While technically this is a bug in whatever overrides UNIVERSAL::can(), Carp is so prolific in its use that we might as well treat it as a Carp bug also and avoid the problem outright. See also: chorny/Class-Std#2
- Loading branch information
Showing
3 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters