PyUnicode_CopyCharacters() checks for buffer and character overflow

It now returns the number of written characters on success.
2 files changed