diff options
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index cbbb3c4..f698cc3 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -2328,7 +2328,7 @@ getinstclassname(PyObject *inst, char *buf, int bufsize) PyObject *class; if (inst == NULL) { - assert(bufsize > strlen("nothing")); + assert(bufsize > 0 && (size_t)bufsize > strlen("nothing")); strcpy(buf, "nothing"); return; } |