Fix stack-buffer-overflow in StagefrightMetadataRetriever StagefrightMetadataRetriever::parseMetaData() used sprintf with %f to format a float into a 32-byte buffer. An attacker-supplied float (e.g., FLT_MAX) could result in an output of up to 47 bytes, causing a stack buffer overflow. This change replaces sprintf with snprintf in StagefrightMetadataRetriever. Bug: 503551664 Test: manual repro with PoC Flag: EXEMPT BUGFIX Note: This was autogenerated by MendIt (go/androidmendit) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:8407b6db81e0ba453f9aaeea9557a6596c6077a1 Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:05d917b4724e584fdb159c6465a488418ca702ec Merged-In: I5a9b333b7c0f14e5a4ebfb31f3fd3dbbe7e5f6aa Change-Id: I5a9b333b7c0f14e5a4ebfb31f3fd3dbbe7e5f6aa