Kaydet (Commit) 199c9a6f authored tarafından Victor Stinner's avatar Victor Stinner

Fix long_format_binary()

Issue #25399: Fix long_format_binary(), allocate bytes for the bytes writer.
üst 8c737d28
......@@ -1836,7 +1836,7 @@ long_format_binary(PyObject *aa, int base, int alternate,
kind = writer->kind;
v = NULL;
}
else if (writer) {
else if (bytes_writer) {
*bytes_str = _PyBytesWriter_Prepare(bytes_writer, *bytes_str, sz);
if (*bytes_str == NULL)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment