Commit 4ea1eaa6 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

pipe: increase the buffer size for pipe identifier

(00.312396)      4: Error (pipes.c:301): Not enough room for pipe 562178190 identifier string

Reported-by: Mr Jenkinks
Cc: Saied Kazemi <saied@google.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ab2c1e42
...@@ -295,7 +295,7 @@ static int recv_pipe_fd(struct pipe_info *pi) ...@@ -295,7 +295,7 @@ static int recv_pipe_fd(struct pipe_info *pi)
static char *pipe_id_string(int pipe_id) static char *pipe_id_string(int pipe_id)
{ {
static char idstr[16]; static char idstr[18];
if (snprintf(idstr, sizeof idstr, "pipe:[%d]", pipe_id) >= sizeof idstr) { if (snprintf(idstr, sizeof idstr, "pipe:[%d]", pipe_id) >= sizeof idstr) {
pr_err("Not enough room for pipe %d identifier string\n", pipe_id); pr_err("Not enough room for pipe %d identifier string\n", pipe_id);
......
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