Repository navigation
memory leak in _PyBytes_FormatEx error path #140939
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Nov 3, 2025 - addedinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
on Nov 3, 2025 Hi. I'm new here and would love to contribute to python and take this as my first issue. How can I reproduce the bug?
Hi, you could build the main branch executable with address sanitizer
--with-address-sanitizer.Reacted by Umar Oladimeji AdelowoOh okay I made some research and actually built with
./configure --with-address-sanitizer --with-pydebug --without-pymalloc- changed the title
[-]memory leak in `_PyPegen_constant_from_string`[/-][+]memory leak in `_PyBytes_FormatEx` error path[/+]on Nov 6, 2025 - added3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesand removed
on Nov 6, 2025
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
_PyBytes_FormatExerror path #140957_PyBytes_FormatExerror path (GH-140957) #141154_PyBytes_FormatExerror path (GH-140957) #141155