Commit d9b5208e authored by Guido van Rossum's avatar Guido van Rossum

In raw_input(prompt), make sure that str(prompt) really a string

object before using it.
parent 1bb26872
...@@ -1191,6 +1191,8 @@ builtin_raw_input(self, args) ...@@ -1191,6 +1191,8 @@ builtin_raw_input(self, args)
if (po == NULL) if (po == NULL)
return NULL; return NULL;
prompt = PyString_AsString(po); prompt = PyString_AsString(po);
if (prompt == NULL)
return NULL;
} }
else { else {
po = NULL; po = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment