Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150914230044.GA31322@openwall.com>
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

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