mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2090] segfault running without self test #1396
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#1396
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 (Mar 16, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2090
Originally assigned to: @magnumripper on GitHub.
Running without self test causes this line to not run:
So test_db is NULL, then when it gets to opencl_nt_fmt_plug.c:reset()
there is a straight dereference of db that crashes:
any other places in the various hashes that don't expect a null db would also have this issue.
@crioux commented on GitHub (Mar 16, 2016):
I dont see why a patch like this isn't sufficient. It's a sledgehammer, but if you're skipping tests, why do some part of the tests at all?
@magnumripper commented on GitHub (Mar 16, 2016):
Thanks, this is a known bug and I'll have a look at some solution similar to your patch within a few days. I was hoping @Sayantan2048 would be back in business by now but apparently it will take some more time.
@magnumripper commented on GitHub (Mar 16, 2016):
@jfoug introduced this bug with
a362940bfor issue #1967. The patch is very weird, obviously incorrect.@magnumripper commented on GitHub (Mar 16, 2016):
Apparently I approved that patch so I am to blame too 😎