diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-02 13:41:18 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-02 13:41:18 (GMT) |
commit | 3b96d0b199838842f15ef3bd3ed490386c7d0c06 (patch) | |
tree | 9ec8916f10a622b024fbc14baa3b5432cdd18639 /Modules | |
parent | a6a0ab4bab0fe9e6f450618c31078fe7736ed415 (diff) | |
download | cpython-3b96d0b199838842f15ef3bd3ed490386c7d0c06.zip cpython-3b96d0b199838842f15ef3bd3ed490386c7d0c06.tar.gz cpython-3b96d0b199838842f15ef3bd3ed490386c7d0c06.tar.bz2 |
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
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pypcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pypcre.c b/Modules/pypcre.c index 11c7ce9..c6a14ec 100644 --- a/Modules/pypcre.c +++ b/Modules/pypcre.c @@ -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 */ } |