python-prctl icon indicating copy to clipboard operation
python-prctl copied to clipboard

Fix set_proctitle for Py_DEBUG

Open shadchin opened this issue 5 years ago • 1 comments

My program crashed if Py_DEBUG is enabled.

This is because Py_XDECREF(bytesstr) in Py_DEBUG mode: dealloceted memory and fills it with 0xDD (DEADBYTE) As a consequence str indicates garbage -> segfault

shadchin avatar Dec 26 '20 20:12 shadchin

@seveas Can you watch this PR?

shadchin avatar Feb 27 '21 12:02 shadchin