mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] GH-94739: Backport GH-94958 to 3.11 (#94965)
This commit is contained in:
parent
df95ad3d72
commit
e5ff5ec3ff
5 changed files with 213 additions and 52 deletions
|
@ -6056,20 +6056,6 @@ fail:
|
|||
|
||||
}
|
||||
|
||||
/* Exception table parsing code.
|
||||
* See Objects/exception_table_notes.txt for details.
|
||||
*/
|
||||
|
||||
static inline unsigned char *
|
||||
parse_varint(unsigned char *p, int *result) {
|
||||
int val = p[0] & 63;
|
||||
while (p[0] & 64) {
|
||||
p++;
|
||||
val = (val << 6) | (p[0] & 63);
|
||||
}
|
||||
*result = val;
|
||||
return p+1;
|
||||
}
|
||||
|
||||
static inline unsigned char *
|
||||
scan_back_to_entry_start(unsigned char *p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue