Security Advisories (1)
CVE-2026-107794 (2026-10-10)

ExtUtils::Typemaps::STL::List versions before 1.07 for Perl allocate a 32 GiB array on an empty list. The OUTPUT typemaps call av_extend( av, len-1 ). On an empty list, this undeflows, and av_extend will allocate an array with 2^32 slots, leading to memory exhaustion. Note that a similar issue was fixed in ExtUtils::Typemaps::STL::Vector version 1.05.

NAME

ExtUtils::Typemaps::Basic - A set of typemaps for simple types

SYNOPSIS

use ExtUtils::Typemaps::Basic;
# First, read my own type maps:
my $private_map = ExtUtils::Typemaps->new(file => 'my.map');

# Then, get additional typemaps and merge them into mine
$private_map->merge(typemap => ExtUtils::Typemaps::Basic->new);

# Now, write the combined map to an output file
$private_map->write(file => 'typemap');

DESCRIPTION

ExtUtils::Typemaps::Basic is an ExtUtils::Typemaps subclass that provides a set of mappings for some basic integer, unsigned, and floating point types that aren't in perl's builtin typemap.

METHODS

These are the overridden methods:

new

Creates a new ExtUtils::Typemaps::Basic object. It acts as any other ExtUtils::Typemaps object, except that it has the object maps initialized.

SEE ALSO

ExtUtils::Typemaps, ExtUtils::Typemaps::Default

AUTHOR

Steffen Mueller <cpan@steffen-mueller.net>

COPYRIGHT AND LICENSE

Copyright 2010-2026 by Steffen Mueller

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.