mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1135] Self-test technical issue with some dynamic formats #710
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#710
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 @magnumripper on GitHub (Mar 22, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1135
During a
--stress-test=0 -form=dynamic, on second and later runs:Cludges were added (
6c867800c7) for similar problems with UTF-16 formats. They often do things likeself->params.plaintext_length *= 3for UTF-8 input and obviously the second time they do that, things are starting to get bad. The above formats probably have some similar issue. This is more or less a bug in--stress-testrather than in the formats but we should try to fix it.@magnumripper commented on GitHub (Mar 26, 2015):
@jfoug I tried this
It did not help but I might not have done it correctly. I assume you see what I'm aiming at - should it be written in some other way?
@frank-dittrich commented on GitHub (Apr 28, 2015):
Apparently, plaintext_length is 0 when the test fails.
@jfoug commented on GitHub (May 20, 2015):
The code in (
6c86780) is setting the length to 0. I have to find out why.@jfoug commented on GitHub (May 20, 2015):
This is why (in bench.c). All of these formats are thin, so there format structure is NOT filled out when this is called (in bench.c)
If I change the code to this, the --stress test is fine, BUT I am not 100% sure what other side effects will happen.
@jfoug commented on GitHub (May 20, 2015):
Here is the side effect:
Note the first line. It was done prior to the init() call being done. That is why we added init()
This is the output when the init() is called (i.e. prior to the change I show)