Skip to content

Commit 8241d6d

Browse files
committed
fix(shim/hook): create an immutable slice for the buffer instead of a mutable one
1 parent c3e883c commit 8241d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrations/shim/hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl SecurityHook {
112112
}
113113

114114
// Construct a slice out of the file buffer and size.
115-
let buffer = unsafe { std::slice::from_raw_parts_mut(file_buffer, file_size) };
115+
let buffer = unsafe { std::slice::from_raw_parts(file_buffer, file_size) };
116116

117117
// Construct a shim input from the path.
118118
let input = ShimInput::SecurityHookBuffer(Some(path), buffer);

0 commit comments

Comments
 (0)