Issue #23055: Fixed off-by-one error in PyUnicode_FromFormatV.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2e5f5fd..1e3b812 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -893,7 +893,8 @@
     }
   expand:
     if (abuffersize > 20) {
-        abuffer = PyObject_Malloc(abuffersize);
+        /* add 1 for sprintf's trailing null byte */
+        abuffer = PyObject_Malloc(abuffersize + 1);
         if (!abuffer) {
             PyErr_NoMemory();
             goto fail;