Limit length of name passed to sprintf.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user