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

crash when using 4096 bits rsa key on windows #165

Open
shekmun opened this issue Jul 1, 2024 · 0 comments
Open

crash when using 4096 bits rsa key on windows #165

shekmun opened this issue Jul 1, 2024 · 0 comments

Comments

@shekmun
Copy link

shekmun commented Jul 1, 2024

I'm compling licensecc on windows with ssl. And I generate the private_key.rsa with 4096 bits (the default is 1024 bits).

When I test with open-license-manager/examples/simple_pc_identifier the program crashes without any information.

I try to locate the crash points. It first crashes at acquire_license in the example.cpp. And finnaly it's at unsigned int len = BIO_read(biosig, (void*)buffer, signatureB64.size()); in the file licensecc\src\library\os\openssl\signature_verifier.cpp. I print the signatureB64.size() and it's 684 bytes long so I try to change unsigned char buffer[512]; to unsigned char buffer[1024];, no more crashes.

Maybe someone can change the 512 to 1024 and commit it.

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

No branches or pull requests

1 participant