Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix segfaults caused by py_unicode_to_char_star
PyString_AsString returns a pointer to the PyString's buffer. So when we Py_DECREF the string immediately afterwards, this buffer is already free'd. It still works, but is not reliable. Instead, move more of the processing to Perl 6, so we can safely py_dec_ref the string after NativeCall copied it to a Perl 6 string. Fixes htmlify.p6 in perl6/doc.git
- Loading branch information
Showing
2 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters