-
- Downloads
bpo-36819: Fix crashes in built-in encoders with weird error handlers (GH-28593)
If the error handler returns position less or equal than the starting position of non-encodable characters, most of built-in encoders didn't properly re-size the output buffer. This led to out-of-bounds writes, and segfaults.
Showing
- Lib/test/test_codeccallbacks.py 168 additions, 9 deletionsLib/test/test_codeccallbacks.py
- Misc/NEWS.d/next/Core and Builtins/2021-09-28-10-58-30.bpo-36819.cyV50C.rst 2 additions, 0 deletions...ore and Builtins/2021-09-28-10-58-30.bpo-36819.cyV50C.rst
- Objects/stringlib/codecs.h 13 additions, 2 deletionsObjects/stringlib/codecs.h
- Objects/unicodeobject.c 39 additions, 21 deletionsObjects/unicodeobject.c
Loading
Please register or sign in to comment