Files
scylladb/cql3
Avi Kivity 1145462a05 cql3: select_statement: fix undefined pointer arithmetic
We add std::distance(...) + 1 to a vector iterator, but
the vector can be empty, so we're adding a non-zero value
to nullptr, which is undefined behavior.

Rearrange to perform the limit (std::min()) before adding
to the pointer.

Found by clang's ubsan.

Closes #7377
2020-10-11 17:54:08 +03:00
..
2020-09-04 17:27:30 +02:00
2020-08-18 12:27:01 +02:00
2020-09-04 17:27:30 +02:00
2020-10-09 23:49:42 +03:00