ClickHouse / clickhouse-cpp

C++ client library for ClickHouse
Apache License 2.0
305 stars 159 forks source link

Dereferencing of the null pointer 'block' #307

Closed pavel-pimenov closed 1 year ago

pavel-pimenov commented 1 year ago

V522 [CWE-476] Dereferencing of the null pointer 'block' might take place. string.cpp 267

https://github.com/ClickHouse/clickhouse-cpp/blob/85dae8e9d971d997242735498d124a11f538d8fe/clickhouse/columns/string.cpp#L267

Enmk commented 1 year ago

That is a false positive, block can be nullptr only if blocks_.size() == 0.