mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #976] krb4 format: asan error #576
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#576
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 @frank-dittrich on GitHub (Dec 30, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/976
contents of fail/fail_krb4.pw:
@magnumripper commented on GitHub (Dec 30, 2014):
Does this sanitizer thing make memdbg pretty much obsolete? Or is there anything memdbg will do that ASAN can't?
@jfoug commented on GitHub (Dec 30, 2014):
Find mem leaks. I assure you, ASAN is not doing that, because we leak like a SOB, due to mem_alloc_tiny, but we have written code specially to handle this with memdbg.
Just because memdbg is not finding stuff all that much, does not mean that it is not still important. It found a LOT of memory leaks over time. Many of them have been found, so the code is clean. I still think it servers it's purpose. Yes, ASAN does a whole lot more. But using it to auto find leaks likely will have us doing wild goose chasing, OR marking all sorts of functions as 'do not track'.
memdbg IS something that compile time injected (just like ASAN). The compiler gives it no help, all code is simply in superclassing the alloc/free functions, and adding our own fencepost boundaries, and a linked list tracking this. ASAN has the compiler help to do somewhat the same thing.
@magnumripper commented on GitHub (Dec 30, 2014):
So memdbg + ASAN might be a cute couple. I haven't used both simultaneously yet.
@jfoug commented on GitHub (Dec 30, 2014):
I have, they work just fine with each other. memdbg is a nasty bitch, but I have developed that over the last 25 years, and it is actually pretty solid. So ASAN does not find any problems in it during runtime.
The memdbg code I have in JtR is by far the youngest version. I had to 'down' code it to C. I wrote it in C in early 90's, but switched to C++ shortly thereafter, and most of the work was in C++, do to objects. I simply had to undo some of the object oriented methods, and do what I could in C. I actually do not have that original C code any more. It was not nearly as powerful as memdbg is today. The original only leak detected upon program exit, wrapped malloc, calloc and strdup (and free). That was about the full extent to that original tool. The C++ code did so much more, including memory state (save and compare), handled all the mallocs, and handled new, and new[] along with delete/delete[] But all those goodies had to be taken out. But all is good, and what we have is pretty solid and very helpful.
Now, ASAN, I am only learning about, but it really kicks ass also. I LOVE the fact that it bounds checks the stack. That seems to be about all that is left, since memdbg has cleaned up a lot of the other issues. I also LOVE the fact that ASAN finds read OOB's (not just write OOB's). Read OOB's are much harder to detect (unless it causes a core). The program runs, and often there are no outward symptoms. Many of the recent things @frank-dittrich has found, have been OOB read issues (read past end of buffer, etc).
But they do work hand in hand. Yes, ASAN, DOES handle so much more. But memdbg is highly tuned to the memory model of JtR, and does not let leaks get by, while at same time, does not get bogged down making you chase a lot of phantoms.