Does anyone actually length-check CStr::from_ptr?

· Users Rust Lang · Nov. 25, 2026, 1:42 a.m.
Summary
The author discusses a potential issue with CStr::from_ptr regarding length-checking, suggesting it may be an edge case for the standard library and contemplating whether to file a bug report. They explore the ambiguity in maximum object sizes in C and the implications of foreign function interface (FFI) strings.