diff options
| author | ubyte <[email protected]> | 2024-01-18 18:18:45 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-18 18:18:45 +0300 |
| commit | 2433d1ceec096bdd48f39e5efb8c362b4b5bac62 (patch) | |
| tree | b7ec1489ce3715feeea980d94ffa3deb5dfdb0b8 | |
| parent | 44d7bd483a997321ece567f06bb3fd52266db1a4 (diff) | |
fix use-after-free in TDummySnapshotContext IGNIETFERRO-2059 (#667)
Fix problem detected by clang's lifetime bound static analyzer.
| -rw-r--r-- | ydb/core/tablet_flat/test/libs/exec/dummy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/tablet_flat/test/libs/exec/dummy.h b/ydb/core/tablet_flat/test/libs/exec/dummy.h index ab8593cca8d..f5766ad6881 100644 --- a/ydb/core/tablet_flat/test/libs/exec/dummy.h +++ b/ydb/core/tablet_flat/test/libs/exec/dummy.h @@ -87,9 +87,9 @@ namespace NFake { void Enqueue(TEventHandlePtr &eh) override { - const auto *name = eh->GetTypeName().c_str(); + const auto &name = eh->GetTypeName(); - Y_ABORT("Got unexpected event %s on tablet booting", name); + Y_ABORT("Got unexpected event %s on tablet booting", name.c_str()); } void DefaultSignalTabletActive(const TActorContext&) override |
