-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I noticed the library panics on certain inputs containing }
:
[dependencies]
base85 = "2.0.0"
fn main() {
println!("{:?}", base85::decode("}"));
}
$ cargo run
thread 'main' panicked at 'attempt to multiply with overflow', /home/finnb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/base85-2.0.0/src/lib.rs:158:27
$ cargo run --release
Err(UnexpectedEof)
As far as I can tell, it is trying to compute 83*85^4=4332651875
which overflows u32
.
Metadata
Metadata
Assignees
Labels
No labels