Skip to content

Undefined behavior upon instantiating DL_Group #2861

@guidovranken

Description

@guidovranken
#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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions