Discussion:
dereferencing type-punned pointer will break strict-aliasing rules in DES_bs_b.c (linux-arm32le-neon)
(too old to reply)
Frank Dittrich
2015-11-01 00:32:47 UTC
Permalink
Raw Message
Solar,

After getting tons of warnings when building bleeding-jumbo on Raspberry
Pi 2, verified that the same warnings occur with master.


$ make -s linux-arm32le-neon
DES_std.c: In function ‘DES_std_set_key’:
DES_std.c:635:17: warning: array subscript is above array bounds
[-Warray-bounds]
while (DES_key[i++]) k += 2;
^
DES_bs_b.c: In function ‘DES_bs_finalize_keys’:
DES_bs_b.c:1241:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_0
^
DES_bs_b.c:1242:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_1
^
DES_bs_b.c:1243:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_2
^
DES_bs_b.c:1244:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_3
^
DES_bs_b.c:1245:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_4
^
DES_bs_b.c:1246:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_5
^
DES_bs_b.c:1247:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_6
^
DES_bs_b.c:1260:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
vst(*(kvtype *)&DES_bs_all.KS.v[index], 0,
^
DES_bs_b.c: In function ‘DES_bs_crypt_25’:
DES_bs_b.c:1406:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
vtype zero = vzero;
^
DES_bs_b.c:1426:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s3(y(7, 12), y(8, 13), y(9, 14),
^
DES_bs_b.c:1426:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1426:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1427:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(10, 15), y(11, 16), y(12, 17),
^
DES_bs_b.c:1427:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1427:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1430:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s4(y(11, 18), y(12, 19), y(13, 20),
^
DES_bs_b.c:1430:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1430:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1431:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(14, 21), y(15, 22), y(16, 23),
^
DES_bs_b.c:1431:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1431:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1440:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s7(y(23, 36), y(24, 37), y(25, 38),
^
DES_bs_b.c:1440:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1440:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1441:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(26, 39), y(27, 40), y(28, 41),
^
DES_bs_b.c:1441:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1441:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1444:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s8(y(27, 42), y(28, 43), y(29, 44),
^
DES_bs_b.c:1444:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1444:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1445:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(30, 45), y(31, 46), y(0, 47),
^
DES_bs_b.c:1445:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1445:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1458:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s3(y(39, 60), y(40, 61), y(41, 62),
^
DES_bs_b.c:1458:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1458:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1459:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(42, 63), y(43, 64), y(44, 65),
^
DES_bs_b.c:1459:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1459:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1462:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s4(y(43, 66), y(44, 67), y(45, 68),
^
DES_bs_b.c:1462:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1462:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1463:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(46, 69), y(47, 70), y(48, 71),
^
DES_bs_b.c:1463:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1463:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1472:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s7(y(55, 84), y(56, 85), y(57, 86),
^
DES_bs_b.c:1472:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1472:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1473:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(58, 87), y(59, 88), y(60, 89),
^
DES_bs_b.c:1473:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1473:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1476:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s8(y(59, 90), y(60, 91), y(61, 92),
^
DES_bs_b.c:1476:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1476:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1477:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(62, 93), y(63, 94), y(32, 95),
^
DES_bs_b.c:1477:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1477:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c: In function ‘DES_bs_crypt’:
DES_bs_b.c:1538:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
vtype zero = vzero;
^
DES_bs_b.c: In function ‘DES_bs_finalize_keys_LM’:
DES_bs_b.c:1656:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_0
^
DES_bs_b.c:1657:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_1
^
DES_bs_b.c:1658:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_2
^
DES_bs_b.c:1659:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_3
^
DES_bs_b.c:1660:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_4
^
DES_bs_b.c:1661:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_5
^
DES_bs_b.c:1662:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_6
^
DES_bs_b.c:1663:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
FINALIZE_NEXT_KEY_BIT_7
^
DES_bs_b.c: In function ‘DES_bs_crypt_LM’:
DES_bs_b.c:1700:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
vtype z = vzero, o = vones;
^
DES_bs_b.c:1700:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1722:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s1(y(31, 0), y(0, 1), y(1, 2),
^
DES_bs_b.c:1722:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1722:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1723:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(2, 3), y(3, 4), y(4, 5),
^
DES_bs_b.c:1723:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1723:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1726:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s2(y(3, 6), y(4, 7), y(5, 8),
^
DES_bs_b.c:1726:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1726:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1727:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(6, 9), y(7, 10), y(8, 11),
^
DES_bs_b.c:1727:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1727:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1730:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s3(y(7, 12), y(8, 13), y(9, 14),
^
DES_bs_b.c:1730:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1730:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1731:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(10, 15), y(11, 16), y(12, 17),
^
DES_bs_b.c:1731:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1731:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1734:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s4(y(11, 18), y(12, 19), y(13, 20),
^
DES_bs_b.c:1734:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1734:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1735:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(14, 21), y(15, 22), y(16, 23),
^
DES_bs_b.c:1735:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1735:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1738:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s5(y(15, 24), y(16, 25), y(17, 26),
^
DES_bs_b.c:1738:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1738:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1739:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(18, 27), y(19, 28), y(20, 29),
^
DES_bs_b.c:1739:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1739:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1742:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s6(y(19, 30), y(20, 31), y(21, 32),
^
DES_bs_b.c:1742:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1742:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1743:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(22, 33), y(23, 34), y(24, 35),
^
DES_bs_b.c:1743:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1743:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1746:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s7(y(23, 36), y(24, 37), y(25, 38),
^
DES_bs_b.c:1746:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1746:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1747:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(26, 39), y(27, 40), y(28, 41),
^
DES_bs_b.c:1747:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1747:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1750:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s8(y(27, 42), y(28, 43), y(29, 44),
^
DES_bs_b.c:1750:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1750:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1751:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(30, 45), y(31, 46), y(0, 47),
^
DES_bs_b.c:1751:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1751:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1755:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s1(y(63, 48), y(32, 49), y(33, 50),
^
DES_bs_b.c:1755:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1755:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1756:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(34, 51), y(35, 52), y(36, 53),
^
DES_bs_b.c:1756:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1756:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1759:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s2(y(35, 54), y(36, 55), y(37, 56),
^
DES_bs_b.c:1759:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1759:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1760:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(38, 57), y(39, 58), y(40, 59),
^
DES_bs_b.c:1760:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1760:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1763:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s3(y(39, 60), y(40, 61), y(41, 62),
^
DES_bs_b.c:1763:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1763:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1764:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(42, 63), y(43, 64), y(44, 65),
^
DES_bs_b.c:1764:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1764:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1767:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s4(y(43, 66), y(44, 67), y(45, 68),
^
DES_bs_b.c:1767:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1767:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1768:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(46, 69), y(47, 70), y(48, 71),
^
DES_bs_b.c:1768:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1768:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1771:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s5(y(47, 72), y(48, 73), y(49, 74),
^
DES_bs_b.c:1771:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1771:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1772:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(50, 75), y(51, 76), y(52, 77),
^
DES_bs_b.c:1772:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1772:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1775:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s6(y(51, 78), y(52, 79), y(53, 80),
^
DES_bs_b.c:1775:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1775:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1776:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(54, 81), y(55, 82), y(56, 83),
^
DES_bs_b.c:1776:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1776:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1779:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s7(y(55, 84), y(56, 85), y(57, 86),
^
DES_bs_b.c:1779:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1779:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1780:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(58, 87), y(59, 88), y(60, 89),
^
DES_bs_b.c:1780:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1780:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1783:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
s8(y(59, 90), y(60, 91), y(61, 92),
^
DES_bs_b.c:1783:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1783:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1784:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
y(62, 93), y(63, 94), y(32, 95),
^
DES_bs_b.c:1784:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1784:5: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]



./john --test --format=descrypt works, despite these warnings.


$ uname -a
Linux raspberrypi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST
2015 armv7l GNU/Linux

$ gcc --version
gcc (Raspbian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ tail -n 13 /proc/cpuinfo |grep -v "^Serial"
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 57.60
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva
idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

Hardware : BCM2709
Revision : a01041



This is the github issue:
https://github.com/magnumripper/JohnTheRipper/issues/1871


Frank
Solar Designer
2015-11-01 10:48:51 UTC
Permalink
Raw Message
Hi Frank,

These are known issues, discussed in here before.
Post by Frank Dittrich
After getting tons of warnings when building bleeding-jumbo on Raspberry
Pi 2, verified that the same warnings occur with master.
$ make -s linux-arm32le-neon
DES_std.c:635:17: warning: array subscript is above array bounds
[-Warray-bounds]
while (DES_key[i++]) k += 2;
^
This is a gcc bug:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124
Post by Frank Dittrich
DES_bs_b.c:1241:4: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
These are JtR bugs that I haven't gotten around to dealing with yet.
As you say, JtR works fine despite of them so far, and due to our
runtime self-test a user would know whenever this breaks. In a
discussion thread with Lei, we determined that these typecasts appear to
be fine on x86, but not necessarily so on other archs for which we use
SIMD intrinsics as well.
Post by Frank Dittrich
https://github.com/magnumripper/JohnTheRipper/issues/1871
Please update it with the above detail.

Thanks,

Alexander

Loading...