1
0
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:
dmiller
2016-01-04 21:44:47 +00:00
parent ee048d5349
commit 7300cde374

View File

@@ -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