Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tons of gcc warnings in DES_bs_b.c for Raspbian Jessie on Raspberry Pi 2 #1871

Open
frank-dittrich opened this issue Oct 31, 2015 · 7 comments
Assignees
Labels
core branch Bug or issue coming from John the Ripper core portability

Comments

@frank-dittrich
Copy link
Collaborator

$ make -s -j 8
DES_bs_b.c: In function ‘DES_bs_finalize_keys’:
DES_bs_b.c:1189:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_0
    ^
DES_bs_b.c:1190:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_1
    ^
DES_bs_b.c:1191:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_2
    ^
DES_bs_b.c:1192:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_3
    ^
DES_bs_b.c:1193:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_4
    ^
DES_bs_b.c:1194:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_5
    ^
DES_bs_b.c:1195:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_6
    ^
DES_bs_b.c:1208: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:1354:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    vtype zero = vzero;
    ^
DES_bs_b.c:1374: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:1374:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1374:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1375: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:1375:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1375:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1378: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:1378:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1378:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1379: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:1379:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1379:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1388: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:1388:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1388:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1389: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:1389:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1389:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1392: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:1392:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1392:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1393: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:1393:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1393:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1406: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:1406:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1406:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1407: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:1407:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1407:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1410: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:1410:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1410:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1411: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:1411:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1411:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1420: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:1420:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1420:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1421: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:1421:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1421:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1424: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:1424:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1424:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1425: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:1425:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1425: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:1486: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:1604:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_0
    ^
DES_bs_b.c:1605:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_1
    ^
DES_bs_b.c:1606:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_2
    ^
DES_bs_b.c:1607:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_3
    ^
DES_bs_b.c:1608:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_4
    ^
DES_bs_b.c:1609:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_5
    ^
DES_bs_b.c:1610:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    FINALIZE_NEXT_KEY_BIT_6
    ^
DES_bs_b.c:1611: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:1641:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    vtype z = vzero, o = vones;
    ^
DES_bs_b.c:1641:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1663: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:1663:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1663:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1664: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:1664:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1664:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1667: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:1667:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1667:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1668: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:1668:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1668:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1671: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:1671:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1671:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1672: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:1672:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1672:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1675: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:1675:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1675:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1676: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:1676:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1676:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1679: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:1679:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1679:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1680: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:1680:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1680:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1683: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:1683:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1683:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1684: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:1684:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1684:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1687: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:1687:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1687:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1688: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:1688:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1688:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1691: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:1691:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1691:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1692: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:1692:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1692:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1696: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:1696:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1696:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1697: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:1697:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1697:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1700: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:1700:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1700:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1701: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:1701:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1701:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1704: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:1704:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1704:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1705: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:1705:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1705:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1708: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:1708:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1708:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1709: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:1709:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1709:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1712: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:1712:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1712:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1713: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:1713:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1713:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1716: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:1716:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1716:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1717: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:1717:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1717:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1720: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:1720:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1720:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1721: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:1721:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1721:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1724: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:1724:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1724:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1725: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:1725:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1725:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c: In function ‘DES_bs_finalize_keys_plain’:
DES_bs_b.c:1753:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_0
                ^
DES_bs_b.c:1754:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_1
                ^
DES_bs_b.c:1755:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_2
                ^
DES_bs_b.c:1756:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_3
                ^
DES_bs_b.c:1757:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_4
                ^
DES_bs_b.c:1758:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_5
                ^
DES_bs_b.c:1759:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                FINALIZE_NEXT_KEY_BIT_6
                ^
DES_bs_b.c: In function ‘DES_bs_crypt_plain’:
DES_bs_b.c:1826:3: 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:1826:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1826:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1827:4: 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:1827:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1827:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1830:3: 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:1830:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1830:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1831:4: 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:1831:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1831:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1834: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:1834:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1834:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1835: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:1835:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1835:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1838: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:1838:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1838:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1839: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:1839:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1839:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1842:3: 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:1842:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1842:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1843:4: 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:1843:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1843:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1846:3: 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:1846:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1846:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1847:4: 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:1847:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1847:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1850: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:1850:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1850:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1851: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:1851:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1851:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1854: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:1854:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1854:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1855: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:1855:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1855:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1859:3: 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:1859:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1859:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1860:4: 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:1860:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1860:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1863:3: 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:1863:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1863:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1864:4: 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:1864:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1864:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1867: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:1867:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1867:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1868: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:1868:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1868:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1871: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:1871:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1871:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1872: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:1872:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1872:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1875:3: 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:1875:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1875:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1876:4: 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:1876:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1876:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1879:3: 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:1879:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1879:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1880:4: 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:1880:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1880:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1883: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:1883:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1883:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1884: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:1884:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1884:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1887: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:1887:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1887:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1888: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:1888:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_bs_b.c:1888:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DES_std.c: In function ‘DES_std_set_key’:
DES_std.c:639:17: warning: array subscript is above array bounds [-Warray-bounds]
   while (DES_key[i++]) k += 2;
                 ^

Will check master as well after the bleeding-jumbo build finished. (May be I should look into cross-compiling JtR, bulding it on the Raspberry Pi 2 requires some patience.)

@thecommandline
Copy link

I can confirm this. Both the warnings and the patience part.

@frank-dittrich
Copy link
Collaborator Author

BTW:
descrypt still passes self test


$ ./john --test --format=descrypt 
Will run 4 OpenMP threads
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 NEON]... (4xOMP) DONE
Warning: "Many salts" test limited: 50/256
Many salts: 811089 c/s real, 203781 c/s virtual
Only one salt:  737280 c/s real, 184781 c/s virtual
$ ./john --test=10 --format=descrypt 
Will run 4 OpenMP threads
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 NEON]... (4xOMP) DONE
Many salts: 818381 c/s real, 204953 c/s virtual
Only one salt:  738180 c/s real, 184637 c/s virtual
$ ./john --list=build-info 
Version: 1.8.0.6-jumbo-1-1547-gf864eba
Build: linux-gnueabihf 32-bit NEON-ac OMP
SIMD: NEON, interleaving: MD4:2 MD5:2 SHA1:1 SHA256:1 SHA512:1
$JOHN is ./
Format interface version: 13
Max. number of reported tunable costs: 3
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
Max. Markov mode level: 400
Max. Markov mode password length: 30
gcc version: 4.9.2
GNU libc version: 2.19 (loaded: 2.19)
Crypto library: OpenSSL
OpenSSL library version: 0100010bf
OpenSSL 1.0.1k 8 Jan 2015
File locking: fcntl()
fseek(): fseeko64
ftell(): ftello64
fopen(): fopen64
memmem(): System's
$ uname -a
Linux raspberrypi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l GNU/Linux

@frank-dittrich
Copy link
Collaborator Author

Just checked master:
make generic just produces this warning:

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;
                 ^

And make -s linux-arm32le-neon seems to produce the same warnings as bleeding-jumbo.
Should I report this on john-dev?

@magnumripper
Copy link
Member

Please do.

@magnumripper magnumripper added core branch Bug or issue coming from John the Ripper core portability labels Oct 31, 2015
@frank-dittrich
Copy link
Collaborator Author

@frank-dittrich
Copy link
Collaborator Author

In http://www.openwall.com/lists/john-dev/2015/11/01/2, Solar pointed out that the one warning message which also occurs for generic builds is a gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124

Apparently, the other warnings had also been discussed before.
Solar postponed dealing with these warnings, since the format works despite these warnings.

Solar mentioned this had been discussed with Lei, but I didn't find such a discussion before I posted to john-dev.
The only mail coming close to this issue I found now is http://www.openwall.com/lists/john-dev/2015/08/06/2.

@lei-april
Copy link
Contributor

Please see this thread: http://www.openwall.com/lists/john-dev/2015/09/15/21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core branch Bug or issue coming from John the Ripper core portability
Projects
None yet
Development

No branches or pull requests

5 participants