HomeSoftware Heritage

Fix use after free of `Query.capture_names` elements

Description

Fix use after free of Query.capture_names elements

PyList_GetItem returns a borrowed reference to the list element that
is then passed to PyTuple_Pack, which increments its reference count
and stores that reference in the tuple. Calling Py_XDECREF on the
reference therefore leaves the refcount one too low.

Details

Provenance
Paul Gey <narpfel@gmx.de>Authored on Feb 13 2021, 3:38 PM
vsellierPushed on Aug 17 2021, 6:44 PM
Parents
rPTS36536ed23169: In publish script, upload assets via separate twine invocations
Branches
Unknown
Tags
Unknown

Event Timeline