Unverified Commit ab398a1b by Christian Brauner Committed by Stéphane Graber

tools/lxc-ls: shutup lgtm

parent 1cbdec6a
...@@ -1166,6 +1166,9 @@ static int ls_recv_str(int fd, char **buf) ...@@ -1166,6 +1166,9 @@ static int ls_recv_str(int fd, char **buf)
if (ret != sizeof(slen)) if (ret != sizeof(slen))
return -1; return -1;
if (slen == SIZE_MAX)
return -1;
if (slen > 0) { if (slen > 0) {
*buf = malloc(sizeof(char) * (slen + 1)); *buf = malloc(sizeof(char) * (slen + 1));
if (!*buf) if (!*buf)
......
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