rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

Suggested fix for #153: fix unsound `from_raw_parts` call #154

Closed skibon02 closed 4 months ago

skibon02 commented 7 months ago

Added null check for from_raw_parts usage in native_activity::glue.

Seems like game_activity have all necessary checks already.

153

rib commented 4 months ago

Thanks for this PR, the fixed looked good to me. I just rebased and tweaked the commit message and merged your change via this PR: https://github.com/rust-mobile/android-activity/pull/157 (but still attributed to you)