mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1983] mask.c : stretch_mask adds too many characters #1327
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#1327
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 @crioux on GitHub (Jan 9, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/1983
Originally assigned to: @magnumripper on GitHub.
If you set (for example)
--mask=?a --max-length=5
the output of stretch_mask is ?a?a?a?a?a?a , which is one character too long, because it is appending 'options.req_maxlength' characters to the end of the mask regardless of the the length of the input mask.
Don't know if this screws anything up later in the program but it doesn't seem right either.
@magnumripper commented on GitHub (Jan 9, 2016):
This might actually worsen the problem where GPU-side mask picks stuff that later get truncated. I'll have a look at it.