summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorJoshua J. Drake <android-open-source@qoop.org>2015-08-15 08:31:32 -0500
committerSteve Kondik <steve@cyngn.com>2016-03-22 17:14:35 -0700
commit985e33c71917a8c7f3cc5bbb2bd0d1feb188c258 (patch)
tree4e83fe330dc4fe321289953517419f627f548e6e /media/libstagefright/OMXCodec.cpp
parent429372d0c568768eb754e827cc63c2a486ced050 (diff)
downloadframeworks_av-985e33c71917a8c7f3cc5bbb2bd0d1feb188c258.zip
frameworks_av-985e33c71917a8c7f3cc5bbb2bd0d1feb188c258.tar.gz
frameworks_av-985e33c71917a8c7f3cc5bbb2bd0d1feb188c258.tar.bz2
Prevent integer underflows in ID3::Iterator
If mFrameSize is less than or equal to getHeaderLength(), an integer underflow will occur. This typically leads to a crash reading out of bounds in the following code. Prevent this from happening by validating mFrameSize. Also add NULL checks after references to ID3::Iterator::getData. Bug: 23285887 Change-Id: I35eeda3c5349ebbd9ffb3ea49b79af6a940d1395
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
0 files changed, 0 insertions, 0 deletions