projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac3459
)
BR3392253: Fix potential buffer overflow in number conversion
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Mon, 6 May 2013 19:43:43 +0000
(23:43 +0400)
committer
Cyrill Gorcunov
<gorcunov@gmail.com>
Mon, 6 May 2013 19:43:43 +0000
(23:43 +0400)
Reported-by: franck.uberto@esrf.fr
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c
patch
|
blob
|
history
diff --git
a/preproc.c
b/preproc.c
index
8984a52
..
e2b12e4
100644
(file)
--- a/
preproc.c
+++ b/
preproc.c
@@
-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;