mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 15:09:02 +00:00
Avoid segfault with vasprintf("%s", NULL). http://seclists.org/nmap-dev/2016/q1/4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user