[GH-ISSUE #276] gcc 4.8.0 warnings #37

Closed
opened 2026-10-14 02:50:26 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @magnumripper on GitHub (Apr 18, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/276

Originally assigned to: @solardiz on GitHub.

(line numbers are from unstable-jumbo)

DES_std.c: In function 'DES_std_set_key':
DES_std.c:631:17: warning: array subscript is above array bounds [-Warray-bounds]
   while (DES_key[i++]) k += 2;
                 ^
inc.c: In function 'do_incremental_crack':
inc.c:352:12: warning: array subscript is above array bounds [-Warray-bounds]
    [numbers[pos]];
            ^
inc.c:352:12: warning: array subscript is above array bounds [-Warray-bounds]
inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds]
   if (++numbers[pos] <= count) goto update_all;
                ^
inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds]
inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds]
inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds]
inc.c:406:10: warning: array subscript is above array bounds [-Warray-bounds]
   numbers[pos] = 0;
          ^
Originally created by @magnumripper on GitHub (Apr 18, 2013). Original GitHub issue: https://github.com/openwall/john/issues/276 Originally assigned to: @solardiz on GitHub. (line numbers are from unstable-jumbo) ``` DES_std.c: In function 'DES_std_set_key': DES_std.c:631:17: warning: array subscript is above array bounds [-Warray-bounds] while (DES_key[i++]) k += 2; ^ inc.c: In function 'do_incremental_crack': inc.c:352:12: warning: array subscript is above array bounds [-Warray-bounds] [numbers[pos]]; ^ inc.c:352:12: warning: array subscript is above array bounds [-Warray-bounds] inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds] if (++numbers[pos] <= count) goto update_all; ^ inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds] inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds] inc.c:405:16: warning: array subscript is above array bounds [-Warray-bounds] inc.c:406:10: warning: array subscript is above array bounds [-Warray-bounds] numbers[pos] = 0; ^ ```
Author
Owner

@magnumripper commented on GitHub (Apr 30, 2013):

Only DES warning is left now.

<!-- gh-comment-id:17209867 --> @magnumripper commented on GitHub (Apr 30, 2013): Only DES warning is left now.
Author
Owner

@magnumripper commented on GitHub (May 2, 2013):

http://www.openwall.com/lists/john-dev/2013/05/02/2

<!-- gh-comment-id:17325637 --> @magnumripper commented on GitHub (May 2, 2013): http://www.openwall.com/lists/john-dev/2013/05/02/2
Author
Owner

@magnumripper commented on GitHub (Oct 12, 2013):

The DES warning is still there with gcc-4.9 (snapshot 2013-10-06).

<!-- gh-comment-id:26196773 --> @magnumripper commented on GitHub (Oct 12, 2013): The DES warning is still there with gcc-4.9 (snapshot 2013-10-06).
Author
Owner

@magnumripper commented on GitHub (Dec 16, 2014):

@jfoug here is an old issue for that gcc warning you were trying to tackle the other day.

<!-- gh-comment-id:67111522 --> @magnumripper commented on GitHub (Dec 16, 2014): @jfoug here is an old issue for that gcc warning you were trying to tackle the other day.
Author
Owner

@magnumripper commented on GitHub (Dec 16, 2014):

03dceefd got rid of the warning for gcc-4.8 but in gcc-4.9 it still shows.

<!-- gh-comment-id:67111651 --> @magnumripper commented on GitHub (Dec 16, 2014): 03dceefd got rid of the warning for gcc-4.8 but in gcc-4.9 it still shows.
Author
Owner

@magnumripper commented on GitHub (Aug 18, 2016):

This is more or less a compiler bug (long gone) and we don't seem to be able to work around it. Closing.

<!-- gh-comment-id:240871983 --> @magnumripper commented on GitHub (Aug 18, 2016): This is more or less a compiler bug (long gone) and we don't seem to be able to work around it. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#37
No description provided.