Browse Source

check lifetime of the TBlob no-copy-view
9d78e3f3c3b02b6a9467bda8b2af46826fa30868

swarmer 7 months ago
parent
commit
47f4373399
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/memory/blob.h

+ 1 - 1
util/memory/blob.h

@@ -198,7 +198,7 @@ public:
     static TBlob Copy(const void* data, size_t length);
 
     /// Creates a blob which doesn't own data. No refcounter, no memory allocation, no data copy.
-    static TBlob NoCopy(const void* data, size_t length);
+    static TBlob NoCopy(const void* data Y_LIFETIME_BOUND, size_t length);
 
     /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
     static TBlob FromFileSingleThreaded(const TString& path, EMappingMode);