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:
Andrew M. Kuchling 2000-08-02 13:41:18 +00:00
parent a6a0ab4bab
commit 3b96d0b199
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}