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

makepasswd segfaults when passing -m sha-512 #3

Closed
opuk opened this issue Aug 1, 2014 · 3 comments
Closed

makepasswd segfaults when passing -m sha-512 #3

opuk opened this issue Aug 1, 2014 · 3 comments
Assignees

Comments

@opuk
Copy link

opuk commented Aug 1, 2014

Let me know if you need the core dump but I think you should be able to reproduce this fairly easy.

[New LWP 2842]
Core was generated by `makepasswd -m sha-512'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000401571 in _makepasswd_password (

characters=0x7fff17511b30 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+", min=<optimized out>, max=<optimized out>) at makepasswd.c:604

604 ret[i] = characters[rand() % clen];
(gdb) bt
#0 0x0000000000401571 in _makepasswd_password (

characters=0x7fff17511b30 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+", min=<optimized out>, max=<optimized out>) at makepasswd.c:604

#1 0x0000000000401979 in _makepasswd_do (prefs=prefs@entry=0x7fff17511ae0)

at makepasswd.c:126

#2 0x0000000000401192 in _makepasswd (prefs=0x7fff17511ae0) at makepasswd.c:109
#3 main (argc=, argv=) at makepasswd.c:776

@khorben
Copy link
Owner

khorben commented Aug 5, 2014

I can confirm this issue, thanks for reporting.

@khorben khorben self-assigned this Aug 5, 2014
@khorben
Copy link
Owner

khorben commented Aug 5, 2014

I believe I have fixed in within the Git repository; can you confirm it?

@opuk
Copy link
Author

opuk commented Aug 6, 2014

Yes it is solved in git now. Thanks!

@khorben khorben closed this as completed Aug 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants