[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#795955: Complex regular subexpression recursion limit in cruft.pm



On Sat, Aug 29, 2015 at 10:31 PM, David Prévot <taffit@debian.org> wrote:
> On Tue, Aug 18, 2015 at 12:27:44PM +0200, Evgeni Golov wrote:
>> Package: lintian
>> Version: 2.5.36.1
>>
>> When running lintian on the source of some shady package
>
> This issue can be triggered with the mozilla-noscript source, as
> available in the archive, and is a regression from previous Lintian
> versions.
>
>> I get quite some warnings from perl:
>> Complex regular subexpression recursion limit (32766) exceeded at /usr/share/lintian/checks/cruft.pm line 939.

it is the remove comments regex from perlfaq ....
   # from perl faq strip comments
    $strip
      =~ s#/\*[^*]*\*+([^/*][^*]*\*+)*/|//([^\\]|[^\n][\n]?)*?(?=\n)|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|.[^/"'\\]*)#defined
$3 ? $3 : ""#gse;

How can I solve this ?

Bastien

> Regards
>
> David


Reply to: