mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2533] New warnings generated by GCC 7 #1668
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1668
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kholia on GitHub (May 8, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2533
While building JtR jumbo with GCC 7 I see,
gcc-7-compilation-log.txt (full log).
I have not investigated these compiler warning messages.
@jfoug commented on GitHub (May 8, 2017):
That is a 100% bogus message. The output will ALWAYS be 4 bytes + 1 byte null. The 'fancy' new compiler is simply too smart for its own good. There is a for loop,
for (x = 0; x < 10; ++x)I guess we could change it to<= 9to pacify the stupid compiler warning (hopefully that will remove the warning). Same end result, but no warning.@kholia commented on GitHub (May 16, 2017):
https://gcc.gnu.org/gcc-7/changes.html is relevant to this discussion. The
ivariable is a signed int, and the compiler falsely thinks that it can be negative. Hence, the compiler says that the sprintf output can be 6 bytes (one extra byte for the-sign character).Yes, this seems to be a bogus warning.
@magnumripper commented on GitHub (May 18, 2017):
Is this a stable gcc or some bleeding-edge beta?
@magnumripper commented on GitHub (May 18, 2017):
So according to that document we should either bump size of
Fldor makeiunsigned (assuming this is a stable gcc).@kholia commented on GitHub (May 19, 2017):
These warnings are generated by stable GCC which will be shipping with Fedora 26.