Files
scylladb/tools
Botond Dénes 58265a7dc1 tools/utils: fix use-after-free when printing error message for unknown operation
When a tool application is invoked with an unknown operation, an error
message is printed, which includes all the known operations, with all
their aliases. This is collected in `std::vector<std::string_view>`. The
problem is that the vector containing alias names, is returned as a
value, so the code ends up creating views to temporaries.
Fix this by returning alias vector with const&.

Fixes: #17584

Closes scylladb/scylladb#17586
2024-03-06 10:42:02 +02:00
..
2024-01-19 11:23:22 +01:00
2024-02-09 16:34:47 +01:00
2024-01-10 08:53:20 +02:00
2023-09-11 21:38:02 +03:00