rust-mobile / android-activity

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

native-activity: Check for null saved_state_in pointer #157

Closed rib closed 4 months ago

rib commented 4 months ago

Avoids calling std::slice::from_raw_parts with a null saved_state_in pointer.

Fixes: #153

rib commented 4 months ago

I opened up a new PR since I wasn't able to push to the branch for https://github.com/rust-mobile/android-activity/pull/154

The commit should still attribute @skibon02 for the fix (thanks!)