String::from_utf8_lossy performs an infallible allocation for invalid input, so allocation failure aborts the host process instead of being returned through this bool/error API. The previous C FFI conversion deliberately used the fallible try_from_utf8_lossy helper in libdd-profiling-ffi/src/profiles/utf8.rs. #2550
Activity