mirror of
https://github.com/micropython/micropython.git
synced 2025-08-09 04:01:59 +02:00
Allocation of a large compression window may fail, and in that case keep the `DeflateIO` state consistent so its other methods (such as `close()`) still work. Consistency is kept by only updating the `self->write` member if the window allocation succeeds. Thanks to @jimmo for finding the bug. Signed-off-by: Damien George <damien@micropython.org>
3 lines
16 B
Plaintext
3 lines
16 B
Plaintext
MemoryError
|
|
b''
|