[CRIU] [PATCH] pipe: increase the buffer size for pipe identifier

Andrey Vagin avagin at openvz.org
Mon Dec 15 22:53:55 PST 2014


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

Reported-by: Mr Jenkinks
Cc: Saied Kazemi <saied at google.com>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 pipes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pipes.c b/pipes.c
index 24a83ff..2b1a4c8 100644
--- a/pipes.c
+++ b/pipes.c
@@ -295,7 +295,7 @@ static int recv_pipe_fd(struct pipe_info *pi)
 
 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) {
 		pr_err("Not enough room for pipe %d identifier string\n", pipe_id);
-- 
1.9.3



More information about the CRIU mailing list