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

Introduces an error state for threading failures. Fixes #64. #69

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

technion
Copy link
Contributor

fill_memory_blocks() configured to return a status, this introduces checks
for a number of a different error conditions, inlcuding calloc() and NULL
pointer failures. These were previously ignored errors.
Thread failures no longer call printf/exit, ensuring better support for
higher level bindings. fill_memory_blocks() is only called in one place,
it's return value is now checked.

Implications for bindings: new error code may need dedicated handling.

This patch can be tested by setting ulimit -u and running ./argon2 with a
relevant thread count.

fill_memory_blocks() configured to return a status, this introduces checks
for a number of a different error conditions, inlcuding calloc() and NULL
pointer failures. These were previously ignored errors.
Thread failures no longer call printf/exit, ensuring better support for
higher level bindings. fill_memory_blocks() is only called in one place,
it's return value is now checked.

Implications for bindings: new error code may need dedicated handling.

This patch can be tested by setting ulimit -u and running ./argon2 with a
relevant thread count.
veorq added a commit that referenced this pull request Jan 12, 2016
Introduces an error state for threading failures. Fixes #64.
@veorq veorq merged commit ea8545a into P-H-C:master Jan 12, 2016
@veorq
Copy link
Member

veorq commented Jan 12, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants