Commit a91cde21 by Aleksandr Mezin

Fix buffer overflow in do_start()

parent a495e1fd
......@@ -790,7 +790,7 @@ static int do_start(void *data)
}
#endif
ret = sprintf(path, "%s/dev/null", handler->conf->rootfs.mount);
ret = snprintf(path, sizeof(path), "%s/dev/null", handler->conf->rootfs.mount);
if (ret < 0 || ret >= sizeof(path)) {
SYSERROR("sprintf'd too many chars");
goto out_warn_father;
......
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