mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-05-18 19:06:18 -07:00
Preven a buffer-overflow (bug#58850)
* src/print.c (print_vectorlike): Don't use sprintf.
This commit is contained in:
parent
5bf5e526d5
commit
d305eaf4ce
1 changed files with 2 additions and 2 deletions
|
|
@ -2017,8 +2017,8 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag,
|
|||
i = sprintf (buf, " stmt=%p", XSQLITE (obj)->stmt);
|
||||
strout (buf, i, i, printcharfun);
|
||||
}
|
||||
i = sprintf (buf, " name=%s", XSQLITE (obj)->name);
|
||||
strout (buf, i, i, printcharfun);
|
||||
print_c_string (" name=", printcharfun);
|
||||
print_c_string (XSQLITE (obj)->name, printcharfun);
|
||||
printchar ('>', printcharfun);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue