| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This was clobbered in the revert.
Re-introduce the change from e1320b0 but with a fix for the bug causing bad hashes on Linux. The original patch was incorrectly copying the `data` struct into the string returned by the function.
|
I've been digging in to figure out why @tenderlove's original change worked on macOS but not Linux, and while I'm not quite to the bottom of it, on macOS crypt_ra is always putting 61 into size, but 32768 (32kb) on Linux. |
Sorry, something went wrong.
|
So I'm not very experienced with the Ruby extension toolchain, but I'm pretty certain the gem links against the system's libcrypt when present. The tests on the original commit pass on Alpine Linux, which doesn't have libcrypt, but fail on Debian which has libcrypt. |
Sorry, something went wrong.
|
@tenderlove let me know if you need any other information in order to review this. I think the libcrypt linking might indicate a different issue in bcrypt-ruby, but I can work on that separately. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Lets try it and see what happens!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Re-introduce @tenderlove's change from e1320b0 but with a fix for the bug causing bad hashes on Linux. The original patch was incorrectly copying the data struct into the string returned by the function.
Tested and working on both macOS and Linux.
Also, re-introduce a free that was clobbered by the revert of the original change.