Unverified Commit 7821133a by Christian Brauner Committed by Stéphane Graber

tools/lxc-ls: shut up lgtm more

parent ab398a1b
......@@ -1180,6 +1180,11 @@ static int ls_recv_str(int fd, char **buf)
return -1;
}
if (slen == SIZE_MAX) {
free(*buf);
return -1;
}
(*buf)[slen] = '\0';
}
......
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