mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1164] --internal-encoding=CP437: asan error #727
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#727
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 @loverszhaokai on GitHub (Mar 27, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1164
This bug is found by fuzzzing John using Fuzz Options.
There is the same error with --internal-encoding=CP1250
#1. Prepare
1.1 content of 7z_fmt
1.2 compile with asan
#2. Reproduce
ASAN:SIGSEGV
==121247==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000044 (pc 0x00000073c670 sp 0x7ffd8b81d3f0 bp 0x7ffd8b81d3f0 T0)
#0 0x73c66f in john_load_conf_db /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:871
#1 0x73d22d in john_load /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:973
#2 0x73e893 in john_init /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:1241
#3 0x740504 in main /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:1674
#4 0x7f47258b7ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#5 0x406cb2 (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/run/john+0x406cb2)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:871 john_load_conf_db
==121247==ABORTING
Aborted
#3. Debug
At line 445 in file loader.c, it return 0 and NULL == *format, what should we do with a db_main whose format is NULL?