develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123861] check_locale_boundary_crossing assertion failure

Thread Previous
From:
Hugo van der Sanden
Date:
February 17, 2015 17:09
Subject:
[perl #123861] check_locale_boundary_crossing assertion failure
Message ID:
rt-4.0.18-23218-1424192954-1529.123861-75-0@perl.org
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #123861]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123861 >


AFL (<http://lcamtuf.coredump.cx/afl/>) finds this:

% ./perl -Ilib -e '"\700" =~ /\C0/il'
\C is deprecated in regex; marked by <-- HERE in m/\C <-- HERE 0/ at -e line 1.
perl: utf8.c:1884: S_check_locale_boundary_crossing: Assertion `((U8)(*p) >= 0xc4)' failed.
Aborted (core dumped)
% 

I guess this is the sort of reason why \C was deprecated in the first place, but I wonder if we could be doing a better job to detect this and either disallow it earlier or in some other way survive better.

Hugo


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About