mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 12:40:49 -08:00
(doprnt): Error if %-width is too big.
This commit is contained in:
parent
1077bc046b
commit
dfb824e8d4
1 changed files with 2 additions and 4 deletions
|
|
@ -104,10 +104,8 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
|
|||
size_bound = -size_bound;
|
||||
size_bound += 50;
|
||||
|
||||
if (size_bound > bufsize)
|
||||
/* This is certainly enough that it doesn't matter
|
||||
to lose the rest. */
|
||||
size_bound = bufsize + 100;
|
||||
if (size_bound > (unsigned) (1 << (INTBITS - 1)))
|
||||
error ("Format padding to large");
|
||||
|
||||
/* Make sure we have that much. */
|
||||
if (size_bound > size_allocated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue