Your message dated Sun, 25 Jun 2017 21:15:18 +0000
with message-id <[email protected]>
and subject line Bug#864782: fixed in perl 5.26.0-2
has caused the Debian Bug report #864782,
regarding perl: Regexp matching crashes claiming string is malformed Utf8, 
despite it is valid.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
864782: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864782
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl
Version: 5.24.1-3
Severity: normal
Tags: upstream

Dear Maintainer,


In some cases, some valid utf-8 chinese (or japanese Kanji) chars
in a perl string makes perl die on "Malformed UTF-8" while matching
a regexp.

Here is the smallest programm (all in ascii, for safety) creating
the problem.


#!/usr/bin/perl

use strict;
use warnings;

my $text = 
"[quant,_1,\x{55b6}\x{696d}\x{65e5},\x{55b6}\x{696d}\x{65e5}]\x{6bce}";

eval {$text =~ 
s{((?<!~)(?:~~)*)\[([A-Za-z#*]\w*)(?:,([^\]]+))?\]}{"$1%$2($3)"}eg;   };

if ( $@ ) {
        die "Failed $@";
} else {
        print "Works, for now\n";
}


The very same text, on the very same regexp, did not create problems on the
previous (5.20.*, 5.22.*) versions of perl. We use that text, and that
regexp, in production environment, using Debian stable, and everything is
running fine.

Beware : it *often* crashes. Not always. When you add entropy, you can get
down to a crash out of two run of the program (use-ing some more stuff,
printing, etc). This precise test script seems to crash everytime I use
it on my developpement environment.

Regards,

        Benjamin.




-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 
(charmap=ISO-8859-15), LANGUAGE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages perl depends on:
ii  dpkg               1.18.24
ii  libperl5.24        5.24.1-3
ii  perl-base          5.24.1-3
ii  perl-modules-5.24  5.24.1-3

Versions of packages perl recommends:
ii  netbase  5.4
ii  rename   0.20-4

Versions of packages perl suggests:
ii  libterm-readline-gnu-perl   1.35-1
ii  libterm-readline-perl-perl  1.0303-1
ii  make                        4.1-9.1
ii  perl-doc                    5.24.1-3

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: perl
Source-Version: 5.26.0-2

We believe that the bug you reported is fixed in the latest version of
perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niko Tyni <[email protected]> (supplier of updated perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 25 Jun 2017 22:46:11 +0300
Source: perl
Binary: perl-base perl-doc perl-debug libperl5.26 libperl-dev perl-modules-5.26 
perl
Architecture: source
Version: 5.26.0-2
Distribution: experimental
Urgency: medium
Maintainer: Niko Tyni <[email protected]>
Changed-By: Niko Tyni <[email protected]>
Description:
 libperl-dev - Perl library: development files
 libperl5.26 - shared Perl library
 perl       - Larry Wall's Practical Extraction and Report Language
 perl-base  - minimal Perl system
 perl-debug - debug-enabled Perl interpreter
 perl-doc   - Perl documentation
 perl-modules-5.26 - Core Perl modules
Closes: 855532 864544 864782 865894
Changes:
 perl (5.26.0-2) experimental; urgency=medium
 .
   * Update Breaks/Replaces versions for libmodule-corelist-perl.
   * No longer configure with -Dusesitecustomize, unnecessary with the
     5.26.0-1 changes.
   * Synchronize with 5.24.1-4 from unstable:
     + Update the kernel versions in $Config{myuname} et al.
     + Backport various Getopt-Long fixes from upstream 2.50..2.51.
       (Closes: #855532, #864544)
     + Backport upstream patch fixing regexp "Malformed UTF-8 character"
       crashes. (Closes: #864782)
   * Backport upstream Test-Simple patch unbreaking the
     libapache2-authcookie-perl test suite. (Closes: #865894)
   * Refresh cross build support files with 5.26.0-1 results.
Checksums-Sha1:
 2d11a47cdb65a79f835f06401c6fbd51451500dd 2344 perl_5.26.0-2.dsc
 453a0c6b2aca6a45b89e2e639a7dbcb2951164e0 156112 perl_5.26.0-2.debian.tar.xz
 27f0c38441d84fee6f66effd6e0262c2b012f491 4760 perl_5.26.0-2_source.buildinfo
Checksums-Sha256:
 555ac8c34555578ddf7ef6e6e666accab7a0a3df70f47fc8198d73e3378ca561 2344 
perl_5.26.0-2.dsc
 9490b2c2240833ff00ea45267506cf833ec59e6a56857bc1c7007ad2febd4785 156112 
perl_5.26.0-2.debian.tar.xz
 813fa0215c8197d74ecc47257ae4cf7594a49c144a427fbf9bc1adbee8e36d1f 4760 
perl_5.26.0-2_source.buildinfo
Files:
 81ba5f17d0e37cd40b8c1524796f8a04 2344 perl standard perl_5.26.0-2.dsc
 f842a23899a94ee27050872351e6ba01 156112 perl standard 
perl_5.26.0-2.debian.tar.xz
 3d8ee90196755d3ae8bba1880ab45180 4760 perl standard 
perl_5.26.0-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdqKOQsmBHZHoj7peLsD/s7cwGx8FAllQIgkACgkQLsD/s7cw
Gx9M/Q//XecD+l3X9T2kdDcubZ/ax9vj7t5mud0WCL0y93vASKIx7gbXAY5zD2Ku
clwU0Gmzwp2cNg1Z8nMRSTV1bRv56k3pNH1081gojM5sbe/WUUTueJ66vHT7sJWF
UDZFhl2kZP4Q6QI+5SAPqa33eIfzQk4nVRjAjY4jVO4S/VHzBnfKGWeJ6ww1UzYn
HOE2Yjli2Rdzx0BsX1TuK9+nuMzPTrQXujZ3P6l8BcmZq1ATx2SUuKQdu05062Vn
FGELgYzsxWc6tDYolI1eL4G3zPkIlrOqJefxVlBhPkp3xAWGjPjFHnFvP3FwgIZw
kFoZl56ukjxD0XtwPdXkOcOtMT0u7brzIQT3eeO655ITp86Fn2KCQWMZlZXpffps
O2K70apyom39etQ1MTC9GvQNPD5IKSuSHeAuYpQ4eN+Ti0N2YEjqfEFQ9M60idCV
yonp+zY4c1fY2ON0npZHuzzydFly+wWfgKEKUSnl/9OsIeOjRAH/WDahfKXk+P/s
JO1QcT5J66R5eKhX+KeqYHp8oYgHlFiCu6qLUro4l+KDtVuCOUSn2ktOSC9N54kl
I5SknaBlaK1/u6yVAQS3pxqKV0ZcjyrwIL7glZDTsjHbmVZiFkVP/LNSejqfOPbZ
C+yyHZVj+RQNMSapLushyF3dW5JjsNbPMfSMNs0LvMkVLIYUMS8=
=l8NO
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to