changed sprintf to more secure snprintf to prevent vulnerability to buffer
overflow exploits.
This commit is contained in:
parent
19f927ac64
commit
83b2809a03
1 changed files with 1 additions and 1 deletions
2
nasm.c
2
nasm.c
|
@ -185,7 +185,7 @@ int main(int argc, char **argv)
|
|||
/* define some macros dependent of command-line */
|
||||
{
|
||||
char temp [64];
|
||||
sprintf (temp, "__OUTPUT_FORMAT__=%s\n", ofmt->shortname);
|
||||
snprintf (temp, sizeof(temp), "__OUTPUT_FORMAT__=%s\n", ofmt->shortname);
|
||||
pp_pre_define (temp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue