diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-06 00:05:19 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-06 00:05:19 +0000 |
commit | 3fa9c3d7aa8741b27feb77e51c8ad467514f66b6 (patch) | |
tree | 2a828f9571c8b0e757eb41fa5d8624c804ea280d /regexec.c | |
parent | cf27e83cadf62074789d2433ea86ae71021b0fc9 (diff) | |
download | perl-3fa9c3d7aa8741b27feb77e51c8ad467514f66b6.tar.gz |
More re debugging.
p4raw-id: //depot/perl@12862
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1475,10 +1475,18 @@ Perl_regexec_flags(pTHX_ register regexp *prog, char *stringarg, register char * minlen = prog->minlen; if (do_utf8 && !(prog->reganch & ROPT_CANY_SEEN)) { - if (utf8_distance((U8*)strend, (U8*)startpos) < minlen) goto phooey; + if (utf8_distance((U8*)strend, (U8*)startpos) < minlen) { + DEBUG_r(PerlIO_printf(Perl_debug_log, + "Too short (in characters)...\n")); + goto phooey; + } } else { - if (strend - startpos < minlen) goto phooey; + if (strend - startpos < minlen) { + DEBUG_r(PerlIO_printf(Perl_debug_log, + "Too short (in bytes)...\n")); + goto phooey; + } } /* Check validity of program. */ @@ -1537,8 +1545,10 @@ Perl_regexec_flags(pTHX_ register regexp *prog, char *stringarg, register char * d.scream_olds = &scream_olds; d.scream_pos = &scream_pos; s = re_intuit_start(prog, sv, s, strend, flags, &d); - if (!s) + if (!s) { + DEBUG_r(PerlIO_printf(Perl_debug_log, "Not present...\n")); goto phooey; /* not present */ + } } DEBUG_r({ |