mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Avoid segfault with vasprintf("%s", NULL). http://seclists.org/nmap-dev/2016/q1/4
This commit is contained in:
parent
ee048d5349
commit
7300cde374
1 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,8 @@ append_string (struct state *state,
|
|||
int prec,
|
||||
int flags)
|
||||
{
|
||||
if(!arg)
|
||||
arg = (unsigned char *) "(nall)";
|
||||
if(prec != -1)
|
||||
width -= prec;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue