Commit 1daa9be9 authored by Nils Goroll's avatar Nils Goroll

Error checking for vsb allocation failure in VRT_synth_page() / VCL synthetic()

parent 8e5fd19d
......@@ -438,7 +438,11 @@ VRT_synth_page(VRT_CTX, const char *str, ...)
while (p != vrt_magic_string_end) {
if (p == NULL)
p = "(null)";
VSB_cat(vsb, p);
if (VSB_cat(vsb, p)) {
VRT_fail(ctx, "synthetic(): %s",
strerror(VSB_error(vsb)));
break;
}
p = va_arg(ap, const char *);
}
va_end(ap);
......
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