Security Advisories (1)
CVE-2019-20454 (2020-02-14)

An out-of-bounds read was discovered in PCRE before 10.34 when the pattern \X is JIT compiled and used to match specially crafted subjects in non-UTF mode. Applications that use PCRE to parse untrusted input may be vulnerable to this flaw, which would allow an attacker to crash the application. The flaw occurs in do_extuni_no_utf in pcre2_jit_compile.c.

NAME

MarpaX::ESLIF::String - ESLIF String is any string value with encoding attribute

VERSION

version 5.0.3

DESCRIPTION

MarpaX::ESLIF::String is a string type wrapper that associates an encoding information to the string value. Without this wrapper, only valid perl string having the utf8 flag will be able to transport encoding information to MarpaX::ESLIF.

METHODS

MarpaX::ESLIF::String->new($string, $encoding)

my $string = 'value';
my $encoding = 'UTF-8';
my $s = MarpaX::ESLIF::String->new($string, $encoding)

$string parameter defaults to the empty string, and $encoding parameter may be undef. In the later case, MarpaX::ESLIF will know you want to say this is a string, and will guess the encoding.

$s overloads by default as if it was $string.

$s->value

Returns the string value.

$s->encoding

Returns the associated encoding.

SEE ALSO

MarpaX::ESLIF, Encode

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jean-Damien Durand.

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