OSDN Git Service

DO NOT MERGE libstagefright: Fix crash in convertMetaDataToMessage
authorWei Jia <wjia@google.com>
Thu, 25 Jun 2015 18:46:54 +0000 (11:46 -0700)
committerNick Kralevich <nnk@google.com>
Fri, 21 Aug 2015 19:36:27 +0000 (12:36 -0700)
commitd8816a13dbcafd5d61d26a8a6b2e892452bca1a7
treecfc5148417101a6c3b7008179ab6dd5b29b836d3
parent8de6d690ae5843bd8e005deedea571596f79bbd3
DO NOT MERGE libstagefright: Fix crash in convertMetaDataToMessage

- The ABuffer used for the Message has a preset value of 1024, if
  flattening the meta data exceeds this value, a check fails hence
  the crash.
- This change creates a new ABuffer if the buffer size would exceed
  the buffer capacity.

Bug: 22771132

CRs-Fixed: 857850

(cherry picked from commit 4bce636865bdf0e2a79fc9a5d9a69107649c850d)

Change-Id: Ia0a963e9872f646791e75b710ff9e227a66af4f9
media/libstagefright/Utils.cpp