diff options
| author | Damien George <damien@micropython.org> | 2025-03-18 00:34:20 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-03-27 11:58:59 +1100 |
| commit | fa42487e45620534440256c9b29e4526f3137de9 (patch) | |
| tree | 386161d263e02896aff011de16ff674ada8e4ef8 /docs/library/framebuf.rst | |
| parent | fdc0c6f8f673cf5e6d2b02ff6820bcc14afe9c94 (diff) | |
extmod/moddeflate: Keep DeflateIO state consistent on window alloc fail.
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>
Diffstat (limited to 'docs/library/framebuf.rst')
0 files changed, 0 insertions, 0 deletions
