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

Getting 'Cannot allocate memory' from krb5_rd_rep on MacOS #1194

Open
engr-m-ayoub opened this issue Nov 14, 2023 · 0 comments
Open

Getting 'Cannot allocate memory' from krb5_rd_rep on MacOS #1194

engr-m-ayoub opened this issue Nov 14, 2023 · 0 comments

Comments

@engr-m-ayoub
Copy link

engr-m-ayoub commented Nov 14, 2023

OS: MacOS BigSur
API: krb5_rd_rep
File: https://github.com/heimdal/heimdal/blob/master/lib/krb5/rd_rep.c

Relevant Code:

*repl = malloc(sizeof(**repl));
if (*repl == NULL) {
ret = krb5_enomem(context);
goto out;
}

seeing a failure over this part of the code as krb5_rd_rep returns 12 which translates to 'cannot allocate memory'

Same Code works perfectly fine on Linux (Ubuntu & Fedora)

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

1 participant