randombit/botan

BigInt right-shifting can cause std::vector to throw std::length_error

guidovranken opened this issue · 1 comments

#include <botan/bigint.h>

int main(void)
{
    Botan::BigInt("0") >> (uint32_t)-1;

    return 0;
}
terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_default_append
Aborted (core dumped)

Fixed now thanks!