nicholas clark suqhccl4org tue nov 06 2007 071845pm 0500 rick delaney wrote nov 06 2007 otgheisede wrote applying regex using string flagged utf8 submatch unexpectedly tainted reproduce behaviour code usrbinperl use warnings use strict use scalarutil qwtainted line utf8upgradeline line first 1 print taintedfirst n __end__ attached patch fixes look rest switch thanks applied change 32236 statement see missingplaced breaks im pretty sure one end case ndigit case ndigit do_utf8 loceol pl_regeol load_utf8_charclass_digit hardcount max scan loceol swash_fetchpl_utf8_digit u8scan do_utf8 scan utf8skipscan hardcount else scan loceol isdigitscan scan case lnbreak case lnbreak added change 31026 looks like may missed adding break switch statements havent looked closely though browsed change httppublicactivestatecomcgibinperlbrowsep31026 first assume cant make regression test shows problem one characters lnbreak matches subset ndigit matches going match anything extra something niggling ought possible expose one somehow crafting string gets spurious overlong match nicholas clark thu 07 aug 2008 172352 0000 patch blead perl 47195 1 suddenly tainted regexp utf8 string