mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1245] Memory leak in gpg format #784
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#784
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 (Apr 29, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1245
This is on Fedora 22 Beta 3, a non-OMP build without ASan and memdbg:
Apparently, in line 1185 of gpg_fmt_plug.c,
bpoints to memory allocated inBN_bin2bn()which doesn't get released.But the GPG logic is quite complex (different algorithms, a large number of
return 0which might need to be replaced with some goto and appropriate free()...), so there are probably several more places which need to be checked.@frank-dittrich commented on GitHub (Apr 29, 2015):
BTW: Asan on my Fedora 22 system shows for the same --test=0 --format=gpg (but for a different build):
@jfoug commented on GitHub (Jun 26, 2015):
@frank-dittrich please test. (test after
028de10)