Kaydet (Commit) 2b81dc9c authored tarafından Guido van Rossum's avatar Guido van Rossum

fix *serious* (new) bug in evalfile: forgot to initialize s!!!

üst 7268c93c
......@@ -229,6 +229,7 @@ builtin_execfile(self, v)
"execfile arguments must be filename[,dict[,dict]]");
return NULL;
}
s = getstringvalue(str);
if (strlen(s) != getstringsize(str)) {
err_setstr(ValueError, "embedded '\\0' in string arg");
return 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