Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External mode: Floating point exception #1362

Closed
loverszhaokai opened this issue May 27, 2015 · 1 comment
Closed

External mode: Floating point exception #1362

loverszhaokai opened this issue May 27, 2015 · 1 comment
Assignees
Labels
bug core branch Bug or issue coming from John the Ripper core
Milestone

Comments

@loverszhaokai
Copy link
Contributor

#1. Reproduce

$ ./configure && make -sj8
$ cat test_pw

$apr1$a2Jqm...$grFrwEgiQleDr0zR4Jx1b.

$ cat local.conf

[List.External:Lanman]

void init()
{
    int i;

    i/= 0;
}

void generate()
{
}


void restore()
{
}

$ ../john test_pw --format=md5crypt --external=lanman --config=local.conf

Floating point exception

#2. GDB debug

$ set args test_pw --format=md5crypt --external=lanman --config=local.conf
$ r

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGFPE, Arithmetic exception.
0x00000000005c1660 in c_execute_fast (addr=<optimized out>) at compiler.c:1137
1137        imm = *(sp - 3)->mem /= imm;
(gdb) bt
#0  0x00000000005c1660 in c_execute_fast (addr=<optimized out>) at compiler.c:1137
#1  0x00000000005c53a2 in ext_init (mode=0x10c712d "lanman", db=<optimized out>) at external.c:190
#2  0x00000000005ccec4 in john_load () at john.c:922
#3  0x00000000005cda86 in john_init (name=0x7fffffffec32 "john", argc=5, argv=0x7fffffffe988) at john.c:1280
#4  0x00000000005ce772 in main (argc=5, argv=0x7fffffffe988) at john.c:1707
@loverszhaokai loverszhaokai added bug core branch Bug or issue coming from John the Ripper core labels May 27, 2015
@jfoug jfoug added this to the 1.8.0-jumbo2 milestone Jun 25, 2015
@magnumripper
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core branch Bug or issue coming from John the Ripper core
Projects
None yet
Development

No branches or pull requests

3 participants