BR3392253: Fix potential buffer overflow in number conversion
Reported-by: franck.uberto@esrf.fr Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
1ac3459539
commit
ce6527459f
1 changed files with 1 additions and 1 deletions
|
@ -5206,7 +5206,7 @@ static void pp_extra_stdmac(macros_t *macros)
|
|||
|
||||
static void make_tok_num(Token * tok, int64_t val)
|
||||
{
|
||||
char numbuf[20];
|
||||
char numbuf[32];
|
||||
snprintf(numbuf, sizeof(numbuf), "%"PRId64"", val);
|
||||
tok->text = nasm_strdup(numbuf);
|
||||
tok->type = TOK_NUMBER;
|
||||
|
|
Loading…
Reference in a new issue