Commit ddb49b59 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

vtest: ensure name is ending with 0

Always nice to have.

Fix found thanks to american fuzzy lop.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 0f01f30f
......@@ -124,7 +124,7 @@ int vtest_create_renderer(int in_fd, int out_fd, uint32_t length)
return -1;
}
vtestname = malloc(length);
vtestname = calloc(1, length + 1);
if (!vtestname)
return -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