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

Bugfix for params arg ordering of maxmem and maxmemfrac to match documentation #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shanewholloway
Copy link

Documentation lists the argument order of scrypt.paramsSync and
scrypt.params as maxtime, [maxmem, [max_memfrac]], and the argument
checking in index.js is consistent with this. However, both
src/node-boilerplate/inc/scrypt_params_async.h and
src/node-boilerplate/scrypt_params_sync.cc were accessing the arguments as
[maxtime, max_memfrac, maxmem], and thus returning incorrect results.

…` and `maxmemfrac` to match documentation

Documentation lists the argument order of `scrypt.paramsSync` and
`scrypt.params` as `maxtime, [maxmem, [max_memfrac]]`, and the argument
checking in `index.js` is consistent with this. However, both
`src/node-boilerplate/inc/scrypt_params_async.h` and
`src/node-boilerplate/scrypt_params_sync.cc` were accessing the arguments as
`[maxtime, max_memfrac, maxmem]`, and thus returning incorrect results.
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.

1 participant