Skip to content

Conversation

@tgarr
Copy link
Collaborator

@tgarr tgarr commented Dec 12, 2024

In the Blob copy constructor, if the object being copied has a lambda (instead of a plain buffer), i.e. BLOB_GENERATOR memory mode, the constructor tries to copy from an empty buffer, causing a Segmentation Fault.

The issue is just that the code is checking memory_mode from the new object (which is always DEFAULT), not on the other object (that is being copied).

So it's a very simple fix, I'm merging it to master right away.

… mode of the object being copied (it would cause a seg fault if the mode was BLOB_GENERATOR)
@tgarr tgarr merged commit 963d4df into Derecho-Project:master Dec 12, 2024
timLouie01 pushed a commit to timLouie01/cascade that referenced this pull request Jun 8, 2025
Bug fix: Blob copy constructor and BLOB_GENERATOR memory mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant