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
Crash when trying to set alternate alphabet for Base32 decoder #108
Comments
Here's what I am seeing under a debugger. it looks like things went recursive.
Testing with a
|
OK, so it looks like this issue has been around for some time. Going back to the Crypto++ 5.6.2 implementation of Base32Decoder::IsolatedInitialize, it appears the issue existed there, also. The fix appears to be quite simple:
After the change, the self-tests and Brad's driver completed successfully. Now, the problem we seem to have is this class is not really tested, so its not clear to me if we are breaking things in other places:
|
OK, I believe this test case exercises
|
Cleared at Commit 9a5e359bb3795bf3 |
Thanks Jeff. I appreciate it. I'm brad from the mailing list ;) Until this is released (I imagine it may be a year or more looking at former Crypto++ releases), I'll continue to use your old alt_base32 header and cpp file. They were removed from the Crypto++ wiki, but I have them in my repo here: https://github.com/w8rbt/oathgen/tree/master/alt_base32 Thanks again, Brad (w8rbt) |
Curious if Crypto++ 7 fixes this. I did not see it mentioned in the changelog. |
Yes, this should have been fixed at Crypto++ 5.6.4. Are you still seeing it in the latest versions of the library? |
Brad from the mailing list reports the following program causes a segmentation fault on Linux. The issue was also confirmed on OS X.
The text was updated successfully, but these errors were encountered: