Skip to content

Commit 8916cad

Browse files
committed
Make scratch region writable again
This fixes an error introduced by a merge conflict in a previous PR. Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 0a575d4 commit 8916cad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hyperlight_host/src/mem/shared_mem.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ impl GuestSharedMemory {
655655
region_type: MemoryRegionType,
656656
) -> MemoryRegion {
657657
let flags = match region_type {
658-
MemoryRegionType::Scratch => MemoryRegionFlags::READ | MemoryRegionFlags::EXECUTE,
658+
MemoryRegionType::Scratch => {
659+
MemoryRegionFlags::READ | MemoryRegionFlags::WRITE | MemoryRegionFlags::EXECUTE
660+
}
659661
#[allow(clippy::panic)]
660662
// In the future, all the host side knowledge about memory
661663
// region types should collapse down to Snapshot vs

0 commit comments

Comments
 (0)