Files
scylladb/cql3
Botond Dénes 4e96e320b4 cql3/query_processor: for_each_cql_result(): move func to the coro frame
Said method has a func parameter (called just f), which it receives as
rvalue ref and just uses as a reference. This means that if caller
doesn't keep the func alive, for_each_cql_result() will run into
use-after-free after the first suspention point. This is unexpected for
callers, who don't expect to have to keep something alive, which they
passed in with std::move().
Adjust the signature to take a value instead, value parameters are moved
to the coro frame and survive suspention points.
Adjust internal callers (query_internal()) the same way.

There are no known vulnerable external callers.
2024-06-25 06:15:25 -04:00
..
2024-06-14 09:45:35 +03:00
2024-06-14 09:45:35 +03:00
2024-06-14 09:45:35 +03:00
2024-01-16 16:43:17 +02:00
2024-01-16 16:43:17 +02:00
2024-01-16 16:43:17 +02:00
2024-01-16 16:43:17 +02:00
2024-06-14 09:45:35 +03:00