/[pcre]/code/trunk/pcre_compile.c
ViewVC logotype

Diff of /code/trunk/pcre_compile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1502 by ph10, Mon Sep 15 13:56:18 2014 UTC revision 1518 by ph10, Fri Feb 6 16:10:27 2015 UTC
# Line 3610  for (;;) Line 3610  for (;;)
3610    {    {
3611    c = *code;    c = *code;
3612    
3613      /* When a pattern with bad UTF-8 encoding is compiled with NO_UTF_CHECK,
3614      it may compile without complaining, but may get into a loop here if the code
3615      pointer points to a bad value. This is, of course a documentated possibility,
3616      when NO_UTF_CHECK is set, so it isn't a bug, but we can detect this case and
3617      just give up on this optimization. */
3618    
3619      if (c >= OP_TABLE_LENGTH) return;
3620    
3621    if (c >= OP_STAR && c <= OP_TYPEPOSUPTO)    if (c >= OP_STAR && c <= OP_TYPEPOSUPTO)
3622      {      {
3623      c -= get_repeat_base(c) - OP_STAR;      c -= get_repeat_base(c) - OP_STAR;

Legend:
Removed from v.1502  
changed lines
  Added in v.1518

  ViewVC Help
Powered by ViewVC 1.1.5