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

Possible infinite loop in benchmarking code #6

Open
Oldes opened this issue Jun 26, 2019 · 1 comment
Open

Possible infinite loop in benchmarking code #6

Oldes opened this issue Jun 26, 2019 · 1 comment

Comments

@Oldes
Copy link

Oldes commented Jun 26, 2019

When y == 0.0, than there is infinite loop in the print_number function:

chacha20poly1305/bench.c

Lines 40 to 46 in 795aa44

if (y < 0.0) {
y = -y;
}
while (y < 100.0) {
y *= 10.0;
c++;
}

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
@Oldes and others