[CRIU] [PATCH] zdtm: Need increase buffer in msgque.c to avoid overflow

vkonyashkin vkonyashkin at parallels.com
Tue May 29 10:07:58 EDT 2012


Need increase buffer in msgque.c to avoid overflow via memcpy,
because now mtext[20] less than ANOTHER_TEST_STRING "Yet another test sysv5 msg".
---
 test/zdtm/live/static/msgque.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/zdtm/live/static/msgque.c b/test/zdtm/live/static/msgque.c
index bb63093..8b846c9 100644
--- a/test/zdtm/live/static/msgque.c
+++ b/test/zdtm/live/static/msgque.c
@@ -20,7 +20,7 @@ const char *test_author="Stanislav Kinsbursky <skinsbursky at openvz.org>";
 
 struct msg1 {
 	long mtype;
-	char mtext[20];
+	char mtext[30];
 };
 #define TEST_STRING "Test sysv5 msg"
 #define MSG_TYPE 1
-- 
1.5.2.2



More information about the CRIU mailing list