Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: Blob copy constructor and BLOB_GENERATOR memory mode #78

Merged
merged 1 commit into from
Dec 12, 2024

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
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