sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
201 stars 49 forks source link

I think I found a bug with "new_scalar.cpp" throwing an exception. #28

Closed JackMBenson closed 3 years ago

JackMBenson commented 3 years ago

The bug occurs when I do the following

void someFunc(InfInt num)
{
     return;
}

int main()
{
      std::string input;
      std::cin >> input;
      InfInt num = input;
      someFunc(num); // causes memory exception with sufficiently large numbers (20 digits caused it for me)
}

I am using visual studio 2019 on windows 10 for this btw.

JackMBenson commented 3 years ago

nvm it was an unrelated issue