OSDN Git Service

Fix integer overflow during MP4 atom processing
authorJoshua J. Drake <android-open-source@qoop.org>
Thu, 9 Apr 2015 04:44:57 +0000 (23:44 -0500)
committerNick Kralevich <nnk@google.com>
Fri, 10 Apr 2015 01:46:31 +0000 (18:46 -0700)
commit5c134e6b2047b10877f02a46f4bb293537269f00
treeb7e4567dd99275527886ada954a143effc0e5ab3
parentae6965ae7664aaea489a8d58358035610075c9af
Fix integer overflow during MP4 atom processing

A few sample table related FourCC values are handled by the
setSampleToChunkParams function. An integer overflow exists within this
function. Validate that mNumSampleToChunkOffets will not cause an integer
overflow.

Bug: 20139950

(cherry picked from commit c24607c29c96f939aed9e33bfa702b1dd79da4b7)

Change-Id: I49086952451b09a234d8b82669251ab9f1ef58d9
media/libstagefright/SampleTable.cpp