diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 09:25:17 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 09:25:17 +0000 |
commit | 89445eabf66316dc372191f43b67bfa7874e3612 (patch) | |
tree | 3fdbdc8f8f426313445e39be8b2d3358f8815df1 /cc/test/fake_tile_manager.cc | |
parent | 4e347a4e8962f589db74b4368e0015863dd6c6bb (diff) | |
download | chromium_src-89445eabf66316dc372191f43b67bfa7874e3612.zip chromium_src-89445eabf66316dc372191f43b67bfa7874e3612.tar.gz chromium_src-89445eabf66316dc372191f43b67bfa7874e3612.tar.bz2 |
[Android] Fix video codec specific data corruption
NewDirectByteBuffer does not copy the provided data but assumes the data
is available for the life time of the Java ByteBuffer object. This mean
passing in a stack allocated byte buffer will lead to memory corruption
when the buffer goes out of scope.
Fix by copying the data into a separate java byte buffer.
BUG=293874
Review URL: https://chromiumcodereview.appspot.com/24045004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
0 files changed, 0 insertions, 0 deletions