Unsafe CString pointer

Last modified: 03 December 2024

Detects unsafe usage of CString. The code like CString::new("hello").unwrap().as_ptr() may lead to memory unsafety because the string is deallocated at the end of the expression.