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

Undefined behavior upon instantiating DL_Group #2861

Closed
guidovranken opened this issue Dec 13, 2021 · 1 comment
Closed

Undefined behavior upon instantiating DL_Group #2861

guidovranken opened this issue Dec 13, 2021 · 1 comment

Comments

@guidovranken
Copy link

#include <botan/dh.h>

int main(void)
{
    Botan::DL_Group grp(9, 6);
    return 0;
}
src/lib/pubkey/workfactor.cpp:33:31: runtime error: -1.70126 is outside the range of representable values of type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/pubkey/workfactor.cpp:33:31 in 
randombit added a commit that referenced this issue Dec 13, 2021
CADO NFS can factor 512 bit RSA keys in under a day.
randombit added a commit that referenced this issue Dec 14, 2021
@randombit
Copy link
Owner

Fixed thanks

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

2 participants