mirror of
https://github.com/nmap/nmap.git
synced 2026-10-24 04:43:03 +00:00
Use safe_realloc in XML escape.
This commit is contained in:
parent
c73921017d
commit
f3a989f989
1 changed files with 1 additions and 1 deletions
2
xml.cc
2
xml.cc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue