Android logging may need reencoding of the logged values or may be unsound #12728
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
C-Bug
An unexpected or incorrect behavior
O-Android
Specific to the Android mobile operating system
P-Unsound
A bug that results in undefined compiler behavior
Milestone
Found in #12684. The call into
android_log_sys::__android_log_write
may be unsound here:bevy/crates/bevy_log/src/android_tracing.rs
Lines 88 to 95 in 31d9146
This unsafe call is undocumented and casts two UTF-8 encoded strings as if they were using the OS encoding. They're properly null-terminated, but probably should be converted into
OsString
orCString
before passing into the function.The text was updated successfully, but these errors were encountered: