1
0
mirror of https://github.com/topjohnwu/Magisk.git synced 2025-03-28 10:32:15 +00:00
topjohnwu eda8c70a80 Borrow value instead of moving in FsPath::from()
When accepting a value of AsRef<Utf8CStr> in FsPath::from(), the
existing code will move a value of Utf8CStrBufArr, creating a reference
that lives longer than the borrowing value, causing undefined behavior.

The issue is only visible on release builds, as more advanced
optimizations will be more aggressive re-using the stack of variables
that no longer lives.

Fix 
2023-10-11 23:48:54 -07:00
..
2023-05-19 15:16:54 -07:00