develooper Front page | perl.perl5.porters | Postings from October 2003

doc-patch & test-patch for `perl -V:<name>`

Thread Next
From:
Jim Cromie
Date:
October 23, 2003 13:42
Subject:
doc-patch & test-patch for `perl -V:<name>`
Message ID:
3F983CF7.8070809@divsol.com
folks,

V-config-pod-rex   
    adds pod wrt  regex feature of -V:name
    I resisted any commentary on implementation, ex what triggers 
literal vs regex search.
    (arguably regex could do literal..)

V-config-t-rexdos
       adds 3 tests to verify that a regex like /.*(?{ `rm -rf / ` })/  
is prevented.

It has a couple todo tests, one of which appears to expose a bug.
I was unable to search RT for a possible match, and google showed only 1 
near fit
from 15k hits on this: perl "Sequence (?{...})" regex.

uncommenting the print in the t-patch yields:

res: Sequence (?{...}) not terminated or not {}-balanced in regex; 
marked by <-- HERE in m/^abuse.*(?{ <-- HERE =/ at ../lib/Config.pm line 
1244.
Attempt to free unreferenced scalar: SV 0x81a488c.



Thread Next


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