From 0ce294faede87e3170d17702131e6719ccb1fdad Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 31 Jan 2005 17:09:25 +0000 Subject: More bug #1077106 stuff, sorry -- modem induced impatiece! This should go on whatever bugfix branches the other fetches up on. --- Objects/stringobject.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/stringobject.c') diff --git a/Objects/stringobject.c b/Objects/stringobject.c index b8e5f41342..b90221a6b8 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -52,6 +52,7 @@ PyObject * PyString_FromStringAndSize(const char *str, int size) { register PyStringObject *op; + assert(size >= 0); if (size == 0 && (op = nullstring) != NULL) { #ifdef COUNT_ALLOCS null_strings++; -- cgit v1.2.1