You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust/src/dcerpc
Jason Ish 363b5f99c3 rust: functions that reference raw pointers are unsafe
Based on the Rust clippy lint that recommends that any public
function that dereferences a raw pointer, mark all FFI functions
that reference raw pointers with build_slice and cast_pointer
as unsafe.

This commits starts by removing the unsafe wrapper inside
the build_slice and cast_pointer macros then marks all
functions that use these macros as unsafe.

Then fix all not_unsafe_ptr_arg_deref warnings from clippy.

Fixes clippy lint:
https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
5 years ago
..
dcerpc.rs rust: functions that reference raw pointers are unsafe 5 years ago
dcerpc_udp.rs rust: functions that reference raw pointers are unsafe 5 years ago
detect.rs rust: remove all usage of transmute 5 years ago
log.rs dcerpc/udp: fix transaction handling and logging 6 years ago
mod.rs logging: Add DCERPC logger 6 years ago
parser.rs rust: SCLogDebug is real nop when built as release 5 years ago