rust-chardet
rust-chardet copied to clipboard
panic in close
Hey, I am using your library to analyze a large corpus of files, both binary and text, I just throw everything at it.
I sometimes trigger this panic:
thread 'main' panicked at 'internal error: entered unreachable code', /home/USER/.cargo/registry/src/github.com-1ecc6299db9ec823/chardet-0.2.4/src/lib.rs:328:26
The "file" that triggered this is available on IPFS. It is most likely a block from a larger, binary file.
FYI, for anyone else running into this, I have a fork with a fix here, which I've been using for quite a while. There's also some other stuff fixed in there.
Me too, just the same problem