Commit e7bd2bb8 authored by Simon McVittie's avatar Simon McVittie Committed by Ralf Habacker
Browse files

In Windows _dbus_printf_string_upper_bound, don't crash on malloc failure

parent 84b03cae
......@@ -549,6 +549,10 @@ int _dbus_printf_string_upper_bound (const char *format,
bufsize *= 2;
p = malloc (bufsize);
if (p == NULL)
return -1;
len = _vsnprintf (p, bufsize - 1, format, args);
free (p);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment