Security Advisories (1)
CVE-2025-40909 (2025-05-30)

Perl threads have a working directory race condition where file operations may target unintended paths. If a directory handle is open at thread creation, the process-wide current working directory is temporarily changed in order to clone that handle for the new thread, which is visible from any third (or more) thread already running. This may lead to unintended operations such as loading code or accessing files from unexpected locations, which a local attacker may be able to exploit. The bug was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and released in Perl version 5.13.6

NAME

Term::Table::Util - Utilities for Term::Table.

DESCRIPTION

This package exports some tools used by Term::Table.

EXPORTS

CONSTANTS

$bool = USE_GCS

True if Unicode::GCString is installed.

$bool = USE_TERM_READKEY

True if Term::ReadKey is installed.

UTILITIES

$width = term_size()

Get the width of the terminal.

If the $TABLE_TERM_SIZE environment variable is set then that value will be returned.

This will default to 80 if there is no good way to get the size, or if the size is unreasonably small.

If Term::ReadKey is installed it will be used.

$width = uni_length($string)

Get the width (in columns) of the specified string. When Unicode::GCString is installed this will work on unicode strings, otherwise it will just use length($string).

SOURCE

The source code repository for Term-Table can be found at http://github.com/exodist/Term-Table/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright 2016 Chad Granum <exodist@cpan.org>.

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

See http://dev.perl.org/licenses/