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

get_cached_power() overflows #197

Open
totikom opened this issue Feb 2, 2021 · 2 comments
Open

get_cached_power() overflows #197

totikom opened this issue Feb 2, 2021 · 2 comments

Comments

@totikom
Copy link

totikom commented Feb 2, 2021

get_cached_power(754645927552678136);
get_cached_power(5932085134177075026);
// and similar overflows

Error message:
thread 'main' panicked at 'index out of bounds: the len is 87 but the index is 5932085134177075026', /<path ommited>/json-rust/src/util/diyfp.rs:226:16

@totikom
Copy link
Author

totikom commented Feb 2, 2021

UPD: get_cached_power_by_index() also overflows with similar error.

@totikom
Copy link
Author

totikom commented Feb 2, 2021

UPD2: exponentiate_f32() and exponentiate_f64() crash with thread 'main' panicked at 'attempt to negate with overflow', /<path ommited>/json-rust/src/number.rs:283:21

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

1 participant