Fix for bug #110651 (Jitterbug PR#343): only use the low 8 bits of an octal
escape, as documented in the comment for the check_escape() function
This commit is contained in:
parent
a6a0ab4bab
commit
3b96d0b199
|
@ -1032,7 +1032,7 @@ else
|
|||
for(c=0, i=0; ptr[i]!=0 && i<3; i++)
|
||||
{
|
||||
if (( pcre_ctypes[ ptr[i] ] & ctype_odigit) != 0)
|
||||
c = c * 8 + ptr[i]-'0';
|
||||
c = (c * 8 + ptr[i]-'0') & 255;
|
||||
else
|
||||
break; /* Non-octal character--break out of the loop */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue