From d9b5208e903a7149a3c5733abbaf7f59f3d7c426 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 Jun 1998 18:25:38 +0000 Subject: In raw_input(prompt), make sure that str(prompt) really a string object before using it. --- Python/bltinmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 3aba792..c894ec5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1191,6 +1191,8 @@ builtin_raw_input(self, args) if (po == NULL) return NULL; prompt = PyString_AsString(po); + if (prompt == NULL) + return NULL; } else { po = NULL; -- cgit v0.12