diff options
author | Ed Beroset <beroset@mindspring.com> | 2004-12-15 16:45:46 +0000 |
---|---|---|
committer | Ed Beroset <beroset@mindspring.com> | 2004-12-15 16:45:46 +0000 |
commit | ec2e10cfea0c3421f88fdcd7b87e926212abbf50 (patch) | |
tree | f513f02738c256aaded32a8858a67cb8844497f9 /preproc.c | |
parent | e0c059ab4e1e5d471372aa42caa57573de912655 (diff) | |
download | nasm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |