Security Advisories (1)
CVE-2026-15534 (2026-08-09)

Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch. The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM node, so the bit count is the subject length plus one times the number of nodes. Nothing checks that product for positive overflow of the signed 32-bit count: a 286331153 byte subject matched against a pattern with 15 participating nodes stores the count as 14, leaving a two byte cache. The cache is then indexed from the real match position and node number, so reads go past the end of the allocation, and on failure CACHEsayNO sets a bit past it. A caller that matches an attacker controlled subject of this size against a pattern of this shape can crash the process or corrupt heap memory.

NAME

TAP::Harness::Env - Parsing harness related environmental variables where appropriate

VERSION

Version 3.52

SYNOPSIS

my $harness = TAP::Harness::Env->create(\%extra_args)

DESCRIPTION

This module implements the environmental variables that Test::Harness uses with TAP::Harness, and instantiates the appropriate class with the appropriate arguments.

METHODS

  • create( \%args )

    This function reads the environment and generates an appropriate argument hash from it. If given any arguments in %extra_args, these will override the environmental defaults. In accepts harness_class (which defaults to TAP::Harness), and any argument the harness class accepts.

ENVIRONMENTAL VARIABLES

HARNESS_PERL_SWITCHES

Setting this adds perl command line switches to each test file run.

For example, HARNESS_PERL_SWITCHES=-T will turn on taint mode. HARNESS_PERL_SWITCHES=-MDevel::Cover will run Devel::Cover for each test.

HARNESS_VERBOSE

If true, TAP::Harness will output the verbose results of running its tests.

HARNESS_SUBCLASS

Specifies a TAP::Harness subclass to be used in place of TAP::Harness.

HARNESS_OPTIONS

Provide additional options to the harness. Currently supported options are:

j<n>

Run <n> (default 9) parallel jobs.

c

Try to color output. See "new" in TAP::Formatter::Base.

a<file.tgz>

Will use TAP::Harness::Archive as the harness class, and save the TAP to file.tgz

fPackage-With-Dashes

Set the formatter_class of the harness being run. Since the HARNESS_OPTIONS is separated by :, we use - instead.

Multiple options may be separated by colons:

HARNESS_OPTIONS=j9:c make test
HARNESS_TIMER

Setting this to true will make the harness display the number of milliseconds each test took. You can also use prove's --timer switch.

HARNESS_COLOR

Attempt to produce color output.

HARNESS_IGNORE_EXIT

If set to a true value instruct TAP::Parser to ignore exit and wait status from test scripts.