We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The error InternalError: The length of register data is not correct. is sometimes returned while generating a key.
InternalError: The length of register data is not correct.
After some testing, I discovered that the length checks that should prevent that error in the first place, are incorrect.
first:
winrar-keygen/WinRarKeygen.hpp
Line 196 in 4d7ecf7
Pad with zeros, and <= should be == :
<=
==
if (LicenseTypeSignatureR.length() < 60) { LicenseTypeSignatureR.insert(LicenseTypeSignatureR.begin(), 60 - LicenseTypeSignatureR.size(), '0'); } if (LicenseTypeSignatureS.length() < 60) { LicenseTypeSignatureS.insert(LicenseTypeSignatureS.begin(), 60 - LicenseTypeSignatureS.size(), '0'); } if (LicenseTypeSignatureR.length() == 60 && LicenseTypeSignatureS.length() == 60) {
second:
Line 207 in 4d7ecf7
same as above, and || should be &&:
||
&&
if (UserNameSignatureR.length() < 60) { UserNameSignatureR.insert(UserNameSignatureR.begin(), 60 - UserNameSignatureR.size(), '0'); } if (UserNameSignatureS.length() < 60) { UserNameSignatureS.insert(UserNameSignatureS.begin(), 60 - UserNameSignatureS.size(), '0'); } if (UserNameSignatureR.length() == 60 && UserNameSignatureS.length() == 60) {
These changes should get rid of that error.
The text was updated successfully, but these errors were encountered:
Cool 😎. Many thanks, fix it later.
Sorry, something went wrong.
Done 😎
No branches or pull requests
The error
InternalError: The length of register data is not correct.
is sometimes returned while generating a key.After some testing, I discovered that the length checks that should prevent that error in the first place, are incorrect.
first:
winrar-keygen/WinRarKeygen.hpp
Line 196 in 4d7ecf7
Pad with zeros, and
<=
should be==
:second:
winrar-keygen/WinRarKeygen.hpp
Line 207 in 4d7ecf7
same as above, and
||
should be&&
:These changes should get rid of that error.
The text was updated successfully, but these errors were encountered: