]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-148074: Fix `typeobject.c` missing error return (GH-148075) (#148095)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 4 Apr 2026 16:01:34 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Sat, 4 Apr 2026 16:01:34 +0000 (16:01 +0000)
gh-148074: Fix `typeobject.c` missing error return (GH-148075)
(cherry picked from commit c398490fbf15ede5de3389b4ca4e32fb9a7c5d67)

Co-authored-by: Wulian233 <1055917385@qq.com>
Objects/typeobject.c

index e58578d310b75c242b504941c013b0e8dc680c22..0db171807aca4ba4c52a348d55970e0afdc59d05 100644 (file)
@@ -8908,6 +8908,7 @@ type_ready_post_checks(PyTypeObject *type)
             PyErr_Format(PyExc_SystemError,
                          "type %s has a tp_dictoffset that is too small",
                          type->tp_name);
+            return -1;
         }
     }
     return 0;