lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 04 Apr 2014 16:34:00 +0400
From:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:	roy.qing.li@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] ipv6: recompute the array size

Hello.

On 04-04-2014 10:51, roy.qing.li@...il.com wrote:

> From: Li RongQing <roy.qing.li@...il.com>

> recompute the array size to kill the warning:
>   net/ipv6/xfrm6_state.c:66:26: error: cannot size expression

> Signed-off-by: Li RongQing <roy.qing.li@...il.com>
> ---
>   net/ipv6/xfrm6_state.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

> diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c
> index 3fc9701..9e08572 100644
> --- a/net/ipv6/xfrm6_state.c
> +++ b/net/ipv6/xfrm6_state.c
> @@ -63,7 +63,7 @@ __xfrm6_sort(void **dst, void **src, int n, int (*cmp)(void *p), int maxclass)
>   	int class[XFRM_MAX_DEPTH];
>   	int count[maxclass];
>
> -	memset(count, 0, sizeof(count));
> +	memset(count, 0, sizeof(int)*maxclass);

    Please insert spaces before and after *.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ