File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -588,7 +588,9 @@ _zstd_ZstdDecompressor_unused_data_get_impl(ZstdDecompressor *self)
588588
589589 PyMutex_Lock (& self -> lock );
590590
591- if (!self -> eof ) {
591+ // If we aren't done decompressing or no input data has been given,
592+ // return empty bytes
593+ if (!self -> eof || self -> input_buffer == NULL ) {
592594 PyMutex_Unlock (& self -> lock );
593595 return Py_GetConstant (Py_CONSTANT_EMPTY_BYTES );
594596 }
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ shift-base:Modules/_ctypes/cfield.c
1818# Modules/_ctypes/cfield.c:640:1: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
1919signed-integer-overflow:Modules/_ctypes/cfield.c
2020
21- # Modules/_zstd/decompressor.c:598:56: runtime error: applying non-zero offset 18446744073709551615 to null pointer
22- pointer-overflow:Modules/_zstd/decompressor.c
23-
2421# Modules/_io/stringio.c:350:24: runtime error: addition of unsigned offset to 0x7fd01ec25850 overflowed to 0x7fd01ec2584c
2522pointer-overflow:Modules/_io/stringio.c
2623
You can’t perform that action at this time.
0 commit comments