mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
1675e32f36
Calling CString::into_raw, changing the length of the string, then passing it to CString::from_raw is not allowed: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_raw This uses a vector instead, and truncates it to the length reported by vsnprintf. BUG=b:209867862 TEST=Borealis boots, and accelerated graphics work. Change-Id: I4b08eabda74086819b3fb437247a5f2ef962defe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3324614 Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Phillip Pearson <philpearson@google.com> |
||
---|---|---|
.. | ||
ffi | ||
src | ||
build.rs | ||
Cargo.toml |