OSDN Git Service

Prevent reading past the end of the buffer in 3GPP
authorJoshua J. Drake <android-open-source@qoop.org>
Mon, 4 May 2015 22:33:49 +0000 (17:33 -0500)
committerNick Kralevich <nnk@google.com>
Thu, 7 May 2015 22:44:55 +0000 (15:44 -0700)
commit5cea0155cfc41f67e91343c342f44251c03fde3a
tree8b4f834103d9b2e3db98d4a83c3cb11374a2e8e5
parent3f4431e97376b8a315ad8862724e1e1fb34c9292
Prevent reading past the end of the buffer in 3GPP

Metadata processed within the parse3GPPMetaData function may not be NUL
terminated and thus calling setCString may read out of bounds. Ensure
proper NUL termination, but take care not to interfere with other special
cases (ie, albm).

Bug: 20923261
Change-Id: Ie93b3038b534b4c4460571a68f4d734cff7ad324
media/libstagefright/MPEG4Extractor.cpp