BSD Ports

devel/p5-Lexical-SealRequireHints 0.012 DragonFly

Perl module to prevent leakage of lexical hints

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
15.1 KiB, 32.7 KiB installed

Description

Perl module to prevent leakage of lexical hints

Lexical::SealRequireHints works around two historical bugs in Perl's handling of the %25^H (lexical hints) variable. One bug causes lexical state in one file to leak into another that is required/used from it. This bug, [perl #68590], was present from Perl 5.6 up to Perl 5.10, fixed in Perl 5.11.0. The second bug causes lexical state (normally a blank %25^H once the first bug is fixed) to leak outwards from utf8.pm, if it is automatically loaded during Unicode regular expression matching, into whatever source is compiling at the time of the regexp match. This bug, [perl #73174], was present from Perl 5.8.7 up to Perl 5.11.5, fixed in Perl 5.12.0.

Both of these bugs seriously damage the usability of any module relying on %25^H for lexical scoping, on the affected Perl versions. It is in practice essential to work around these bugs when using such modules. On versions of Perl that require such a workaround, this module globally changes the behaviour of require, including use and the implicit require performed in Unicode regular expression matching, so that it no longer exhibits these bugs.

In the other systems

The newest version among them is 0.012, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Lexical-SealRequireHints0.012 newestnone known-[email protected]-
FreeBSDdevel/p5-Lexical-SealRequireHints0.012 newestnone known-[email protected]-
NetBSDdevel/p5-Lexical-SealRequireHints0.012nb3 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-Lexical-SealRequireHints0.012 newestno data-[email protected]-
HardenedBSDdevel/p5-Lexical-SealRequireHints0.012 newestno data-[email protected]-
GhostBSDdevel/p5-Lexical-SealRequireHints0.012 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-Lexical-SealRequireHints

From DPorts:

cd /usr/dports/devel/p5-Lexical-SealRequireHints && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1