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

proxy: C_CloseAllSessions: Make sure that calloc args are non-zero #325

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

ueno
Copy link
Member

@ueno ueno commented Oct 5, 2020

This prevents efence warning if either of the calloc arguments is zero. While it is is safe on glibc systems, POSIX says the behavior is implementation-defined.

Reported by Paul Wouters.

@ueno ueno added the bug label Oct 5, 2020
This prevents efence warning if either of the calloc arguments is
zero.  While it is is safe on glibc systems, POSIX says the behavior
is implementation-defined.

Reported by Paul Wouters.
@ueno ueno force-pushed the wip/dueno/calloc-size branch from dba4a7e to 38b0b9e Compare October 5, 2020 07:31
@letoams
Copy link

letoams commented Oct 5, 2020

This patch resolves my issue. Thanks!

@ueno
Copy link
Member Author

ueno commented Oct 5, 2020

Thank you for the review.

@ueno ueno merged commit 0a1263a into p11-glue:master Oct 5, 2020
@ueno ueno added this to the 0.23.22 milestone Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants