Open CodesInChaos opened 8 years ago
Change the result type of to_wide_null to Result<Vec<u16>, NulError>, matching CString::new.
to_wide_null
Result<Vec<u16>, NulError>
CString::new
Without this error you get silent truncation when passing data to an API which expects null terminated strings. This can easily result in security holes.
Change the result type of
to_wide_null
toResult<Vec<u16>, NulError>
, matchingCString::new
.Without this error you get silent truncation when passing data to an API which expects null terminated strings. This can easily result in security holes.