mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01: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>
14 KiB
14 KiB