We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3e883c commit 8241d6dCopy full SHA for 8241d6d
src/integrations/shim/hook.rs
@@ -112,7 +112,7 @@ impl SecurityHook {
112
}
113
114
// Construct a slice out of the file buffer and size.
115
- let buffer = unsafe { std::slice::from_raw_parts_mut(file_buffer, file_size) };
+ let buffer = unsafe { std::slice::from_raw_parts(file_buffer, file_size) };
116
117
// Construct a shim input from the path.
118
let input = ShimInput::SecurityHookBuffer(Some(path), buffer);
0 commit comments