FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
310 stars 133 forks source link

(smile) `ArrayIndexOutOfBounds` for truncated UTF-8 name #291

Closed cowtowncoder closed 3 years ago

cowtowncoder commented 3 years ago

(note: found by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35932) (note: similar to #289 but for different backend)

Looks like there is an error case where end-of-input at a strategic place in the middle of a UTF-8 code point of name can cause uncaught ArraIndexOutOfBounds exception.