develooper Front page | perl.perl5.porters | Postings from March 2011

Is this a tainting bug?

Thread Next
Karl Williamson
March 27, 2011 12:29
Is this a tainting bug?
Message ID:
I dont' understand enough about tainting to know if this is a bug;  in 
regexec.c there are these lines beginning at #6512:

     /* If this character is potentially in the bitmap, check it */
     if (c < 256) {
	    match = TRUE;
	else if (flags & ANYOF_NON_UTF8_LATIN1_ALL
		&& ! utf8_target
		&& ! isASCII(c))
	    match = TRUE;

	else if (flags & ANYOF_LOCALE) {
	    PL_reg_flags |= RF_tainted;

	    if ((flags & ANYOF_LOC_NONBITMAP_FOLD)

Note that under locale, things don't necessarily get tainted.  But when 
they aren't tainted, the code hasn't relied on anything in the locale, 
so maybe that's all right??

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About