We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdc4c8d commit cfcb18aCopy full SHA for cfcb18a
library/alloc/src/ffi/c_str.rs
@@ -359,6 +359,7 @@ impl CString {
359
///
360
/// This function does not validate ownership of the raw pointer's memory.
361
/// A double-free may occur if the function is called twice on the same raw pointer.
362
+ /// Additionally, the caller must ensure the pointer is not dangling.
363
364
/// It should be noted that the length isn't just "recomputed," but that
365
/// the recomputed length must match the original length from the
0 commit comments