Fix #141149: crash when toggling bake node muting

The `StringRef` in `MemoryBlobReader` was referencing data
that was freed under some circumstances. While the actual packed
data is shared between the original object and copy-on-eval object,
the name of the blobs are not.
This commit is contained in:
Jacques Lucke
2025-06-30 08:47:54 +02:00
parent 63894afe19
commit 42cc65e5b5

View File

@@ -236,7 +236,7 @@ class MemoryBlobWriter : public BlobWriter {
*/
class MemoryBlobReader : public BlobReader {
private:
Map<StringRef, Span<std::byte>> blob_by_name_;
Map<std::string, Span<std::byte>> blob_by_name_;
public:
void add(StringRef name, Span<std::byte> blob);