File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ def recurse(deep):
309
309
return data
310
310
check_unpickler (recurse (0 ), 32 , 0 )
311
311
check_unpickler (recurse (1 ), 32 , 20 )
312
- check_unpickler (recurse (20 ), 32 , 58 )
313
- check_unpickler (recurse (50 ), 64 , 58 )
314
- check_unpickler (recurse (100 ), 128 , 134 )
312
+ check_unpickler (recurse (20 ), 32 , 20 )
313
+ check_unpickler (recurse (50 ), 64 , 60 )
314
+ check_unpickler (recurse (100 ), 128 , 140 )
315
315
316
316
u = unpickler (io .BytesIO (pickle .dumps ('a' , 0 )),
317
317
encoding = 'ASCII' , errors = 'strict' )
Original file line number Diff line number Diff line change @@ -6288,7 +6288,7 @@ load_mark(UnpicklerObject *self)
6288
6288
* mark stack.
6289
6289
*/
6290
6290
6291
- if (( self -> num_marks + 1 ) >= self -> marks_size ) {
6291
+ if (self -> num_marks >= self -> marks_size ) {
6292
6292
size_t alloc ;
6293
6293
6294
6294
/* Use the size_t type to check for overflow. */
You can’t perform that action at this time.
0 commit comments