You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let scaled_int_val = &self.int_val*ten_to_the((rhs.scale - self.scale)asu64);
overflow whenever either lhs or rhs are opposite signs and the abs sum is >u64::MAX
repro:
let a = BigDecimal::new(bigdecimal::num_bigint::BigInt::from(1), i64::MIN);let b = BigDecimal::new(bigdecimal::num_bigint::BigInt::from(1),1);let _ = a == b;
The following lines:
bigdecimal-rs/src/lib.rs
Line 799 in 272123e
bigdecimal-rs/src/lib.rs
Line 802 in 272123e
overflow whenever either
lhs
orrhs
are opposite signs and the abs sum is>u64::MAX
repro:
Found during fuzzing near/borsh-rs#91 (comment)
The text was updated successfully, but these errors were encountered: