aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-07-15 05:53:49 +0300
committerswarmer <swarmer@yandex-team.com>2024-07-15 06:04:11 +0300
commitc057c61995a2d13f9271402b9b43c3d4bd038d3c (patch)
treeab0a3e20f3e7d4e554acfbdbc72dd5b9ab55f623
parent7adf3c8baaf911476724452934b94f91111e6bb9 (diff)
downloadydb-c057c61995a2d13f9271402b9b43c3d4bd038d3c.tar.gz
check lifetime bound of the buffer referred by the TMemoryInput stream
dba46bf17021f643b779aadc16bdb4feca51333a
-rw-r--r--util/stream/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/mem.h b/util/stream/mem.h
index cad6dfb9754..53383740a97 100644
--- a/util/stream/mem.h
+++ b/util/stream/mem.h
@@ -25,10 +25,10 @@ public:
* @param buf Memory block to use.
* @param len Size of the memory block.
*/
- TMemoryInput(const void* buf, size_t len) noexcept;
+ TMemoryInput(const void* buf Y_LIFETIME_BOUND, size_t len) noexcept;
TMemoryInput(TString&&) = delete;
explicit TMemoryInput(const TStringBuf buf) noexcept;
- explicit TMemoryInput(const char* zstr)
+ explicit TMemoryInput(const char* zstr Y_LIFETIME_BOUND)
: TMemoryInput(TStringBuf(zstr))
{
}