We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137507e commit 94c3452Copy full SHA for 94c3452
Modules/pypcre.c
@@ -1064,7 +1064,7 @@ else
1064
c -= '0';
1065
while(i++ < 2 && (pcre_ctypes[ptr[1]] & ctype_digit) != 0 &&
1066
ptr[1] != '8' && ptr[1] != '9')
1067
- c = c * 8 + *(++ptr) - '0';
+ c = (c * 8 + *(++ptr) - '0') & 255;
1068
break;
1069
1070
/* Special escapes not starting with a digit are straightforward */
0 commit comments