-
Notifications
You must be signed in to change notification settings - Fork 29
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
investigate potential regression in 1.2.0 #23
Comments
@magiruuvelvet please let's continue the discussion here, thx :) |
There is an array out of bound when the digit size is greater than 8. I just increased the array with more values. I'm on Linux btw and compiled with clang. The behavior is undefined, but should normally result in a segfault I guess. |
Yep, you're right! I was able to reproduce the issue with >= 15 digits. Increasing the array size is not enough though, there are some other fixes that are needed :) |
- fix #23 - support for bigger tokens will come in future, if ever needed (10 digits should be more than enough for the time being) - update readme - add test
Supporting tokens with long digits (> 10) would require a bigger refactoring and I don't really have time for that. I want to focus on OTPClient v1.3.0 rather than supporting a non existing use case :) |
- fix #23 - support for bigger tokens will come in future, if ever needed (10 digits should be more than enough for the time being) - update readme - add test
#22 (comment)
The text was updated successfully, but these errors were encountered: