Unverified Commit 07fdfa63 by Christian Brauner Committed by Stéphane Graber

criu: use correct check initialization check

parent 0b78cd52
...@@ -550,7 +550,7 @@ static void exec_criu(struct criu_opts *opts) ...@@ -550,7 +550,7 @@ static void exec_criu(struct criu_opts *opts)
external_not_veth = false; external_not_veth = false;
} }
if (n->name) { if (n->name[0] != '\0') {
if (strlen(n->name) >= sizeof(eth)) if (strlen(n->name) >= sizeof(eth))
goto err; goto err;
strncpy(eth, n->name, sizeof(eth)); strncpy(eth, n->name, sizeof(eth));
......
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