Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 15 Sep 2015 02:00:44 +0300
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: md5cryptsse() has wrong initializer for a 2-dimensional array

magnum -

I am getting this warning with gcc 4.6.2:

simd-intrinsics.c: In function 'md5cryptsse':
simd-intrinsics.c:606:2: warning: missing braces around initializer [-Wmissing-braces]
simd-intrinsics.c:606:2: warning: (near initialization for 'buffers[0]') [-Wmissing-braces]

The line is:

	JTR_ALIGN(MEM_ALIGN_SIMD) unsigned char buffers[8][64*MD5_SSE_NUM_KEYS] = { 0 };

An extra pair of curly braces makes the warning go away:

	JTR_ALIGN(MEM_ALIGN_SIMD) unsigned char buffers[8][64*MD5_SSE_NUM_KEYS] = { { 0 } };

Alexander

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.