OSDN Git Service

better validation lengths of strings in ID3 tags
authorRay Essick <essick@google.com>
Tue, 16 Aug 2016 21:24:43 +0000 (14:24 -0700)
committerRay Essick <essick@google.com>
Tue, 16 Aug 2016 21:24:43 +0000 (14:24 -0700)
commitd23c01546c4f82840a01a380def76ab6cae5d43f
tree534b329342ddbc10fe99a8ebadf6934b8f35cd2e
parent8f4b1a7de0e102b9203cfda3970edd2eedd9becf
better validation lengths of strings in ID3 tags

Validate lengths on strings in ID3 tags, particularly around 0.
Also added code to handle cases when we can't get memory for
copies of strings we want to extract from these tags.

Affects L/M/N/master, same patch for all of them.

Bug: 30744884
Change-Id: I2675a817a39f0927ec1f7e9f9c09f2e61020311e
Test: play mp3 file which caused a <0 length.
media/libstagefright/id3/ID3.cpp