Commit cd4b0df9 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Fix a heap overflow in varnishtest

parent deb830fb
......@@ -2004,7 +2004,7 @@ cmd_txgoaway(CMD_ARGS)
vtc_fatal(vl, "Unknown txgoaway spec: %s\n", *av);
if (!f.data)
f.data = malloc(2);
f.data = malloc(8);
vbe32enc(f.data, ls);
vbe32enc(f.data + 4, err);
write_frame(s->hp, &f, 1);
......
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