Kaydet (Commit) 16dfd29e authored tarafından Guido van Rossum's avatar Guido van Rossum

Limit length of name passed to sprintf.

üst c4884007
......@@ -1934,7 +1934,7 @@ import_from(locals, v, name)
x = dict2lookup(w, name);
if (x == NULL) {
char buf[250];
sprintf(buf, "cannot import name %s",
sprintf(buf, "cannot import name %.230s",
getstringvalue(name));
err_setstr(ImportError, buf);
return -1;
......
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