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

I got "malloc(): invalid size (unsorted)" when using "crypt=1" #77

Open
alizdavoodi opened this issue Jun 16, 2021 · 2 comments
Open

I got "malloc(): invalid size (unsorted)" when using "crypt=1" #77

alizdavoodi opened this issue Jun 16, 2021 · 2 comments

Comments

@alizdavoodi
Copy link

alizdavoodi commented Jun 16, 2021

Hey
Thanks for refactoring pam-MYySQL module.

When I use the new beta1 version, I got this error.

'$1$GcEzthuz$H9PYgAACHdtkxtTSHsYwT0' v '$1$GcEzthuz$H9PYgAACHdtkxtTSHsYwT0' (<= 'sldkjfsdf'). Error = 0.
malloc(): invalid size (unsorted)

The issue does not exist in version 0.8.2

My pam configuration is like this:

    auth required pam_mysql.so user={{ .Values.mysql.user }} passwd={{ .Values.mysql.password }} host={{ .Values.mysql.host }} db={{ .Values.mysql.dbname }} table=users usercolumn=userid passwdcolumn=passwd crypt=1
    account sufficient pam_mysql.so user={{ .Values.mysql.user }} passwd={{ .Values.mysql.password }} host={{ .Values.mysql.host }} db={{ .Values.mysql.dbname }} table=users usercolumn=userid passwdcolumn=passwd crypt=1

The password format I'm using is: (generated with openssl passwd -1)
$1$GcEzthuz$H9PYgAACHdtkxtTSHsYwT0

@NigelCunningham
Copy link
Owner

Thanks for the report. I'll seek to reproduce the issue and prepare a fix.

@NigelCunningham
Copy link
Owner

Sorry it has taken so long to get back to you. I think I've got this fixed now. Would you please retest (assuming you're still watching this ticket!)

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