Commit 3b96d0b1 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

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
parent a6a0ab4b
......@@ -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 */
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment