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

Andrew Vagin avagin at parallels.com
Tue May 29 11:00:58 EDT 2012


Ack

On Tue, May 29, 2012 at 06:07:58PM +0400, vkonyashkin wrote:
> 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