• Victor Stinner's avatar
    PyUnicode_Join() checks output length in debug mode · 9ce5a835
    Victor Stinner authored
    PyUnicode_CopyCharacters() may copies less character than requested size, if
    the input string is smaller than the argument. (This is very unlikely, but who
    knows!?)
    
    Avoid also calling PyUnicode_CopyCharacters() if the string is empty.
    9ce5a835