summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorEd Beroset <beroset@mindspring.com>2004-12-15 16:45:46 +0000
committerEd Beroset <beroset@mindspring.com>2004-12-15 16:45:46 +0000
commitec2e10cfea0c3421f88fdcd7b87e926212abbf50 (patch)
treef513f02738c256aaded32a8858a67cb8844497f9 /preproc.c
parente0c059ab4e1e5d471372aa42caa57573de912655 (diff)
downloadnasm-ec2e10cfea0c3421f88fdcd7b87e926212abbf50.tar.gz
nasm-ec2e10cfea0c3421f88fdcd7b87e926212abbf50.tar.bz2
nasm-ec2e10cfea0c3421f88fdcd7b87e926212abbf50.zip
replaced vsprintf() with vsnprintf() to avoid buffer overflow exploit
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 0c209b5..bf5c61d 100644
--- a/preproc.c
+++ b/preproc.c
@@ -4086,7 +4086,7 @@ error(int severity, const char *fmt, ...)
return;
va_start(arg, fmt);
- vsprintf(buff, fmt, arg);
+ vsnprintf(buff, 1024, fmt, arg);
va_end(arg);
if (istk && istk->mstk && istk->mstk->name)