Skip to content

Malformed Protobuf file can lead to server crash #11203

@filimonov

Description

@filimonov

See bad_protobuf.zip

Catched by:

dd if=/dev/urandom count=100000 bs=1 | tee bad.data | clickhouse-local -S "c1 Int64, c2 String, c3 String, c4 UInt32, c5 String, c6 Int64, c7 Array(Int32), c8 Array(UInt8), c9 Array(Int32), c10 Array(Int32), c11 Array(String)"  -q "SELECT count() FROM table" --input-format=Protobuf --format_schema=schema:BadDataTests  --stacktrace

(Originally the compressed data was sent via HTTP w/o appropriate Content-Encoding header).

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasecomp-formatsInput/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.).crashCrash / segfault / abort

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions