1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Use safe_realloc in XML escape.

This commit is contained in:
david
2010-04-15 02:18:58 +00:00
parent c73921017d
commit f3a989f989

2
xml.cc
View File

@@ -178,7 +178,7 @@ static char *alloc_vsprintf(const char *fmt, va_list va) {
s = NULL;
size = 32;
for (;;) {
p = (char *) realloc(s, size);
p = (char *) safe_realloc(s, size);
if (p == NULL)
return NULL;
s = p;