floss: Limit str::from_utf8 to null-terminated slice
bt_bdname_t->name has the type [u8; 249] and str::from_utf8 attempts to convert the entire slice instead of just the null-terminated string portion. Modify the string conversion for bt_bdname_t so that it first gets the null-terminated slice and attempts str::from_utf8 on that only. Bug: 194380291 Tag: #floss Test: Rust unit tests Change-Id: I7147925ff05b7a00e96bc71de833236f62e9da6a
Loading
Please register or sign in to comment