diff --git a/release_build_files/readme.md b/release_build_files/readme.md index f08d1c937f..839f328aad 100644 --- a/release_build_files/readme.md +++ b/release_build_files/readme.md @@ -626,6 +626,8 @@ code. - Database (Desktop): Fixed cached objects with priorities set (via `SetPriority()` or `SetValueAndPriority()`) being read back from the offline persistence cache as corrupted or null values. + - Remote Config (Android): Fixed an out-of-bounds stack read when converting + byte-array config values to `Variant` in `GetAll()`. - Storage (Desktop): Fixed a crash when destroying a `Listener` that was never passed to a storage operation. - App Check (Desktop): Fixed requests from any `App` other than the first diff --git a/remote_config/src/android/remote_config_android.cc b/remote_config/src/android/remote_config_android.cc index 66cf18c821..2b237d787d 100644 --- a/remote_config/src/android/remote_config_android.cc +++ b/remote_config/src/android/remote_config_android.cc @@ -1292,7 +1292,7 @@ static Variant RemoteConfigValueToVariant(JNIEnv* env, jobject from) { if (!CheckKeyRetrievalLogError(env, "", "vector")) { std::vector blob = util::JniByteArrayToVector(env, value_array); - return Variant::FromMutableBlob(&blob, blob.size()); + return Variant::FromMutableBlob(blob.data(), blob.size()); } // If get here, all conversion fails. LogError(