rust-chardet icon indicating copy to clipboard operation
rust-chardet copied to clipboard

panic in close

Open mrd0ll4r opened this issue 4 years ago • 2 comments

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.

mrd0ll4r avatar May 15 '20 17:05 mrd0ll4r

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.

mrd0ll4r avatar Jun 01 '22 15:06 mrd0ll4r

Me too, just the same problem

Force1ess avatar Jan 10 '24 02:01 Force1ess