commit | dc69f4856187904bfb0d12a72cdf5a563a0deff2 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Mon May 04 18:29:08 2015 -0500 |
committer | Nick Kralevich <nnk@google.com> | Thu May 07 20:29:31 2015 -0700 |
tree | ff42c9470074f5f1d98b62ba293b4226ab0ba8d6 | |
parent | 3f4431e97376b8a315ad8862724e1e1fb34c9292 [diff] |
Fix integer overflow when handling MPEG4 tx3g atom When the sum of the 'size' and 'chunk_size' variables is larger than 2^32, an integer overflow occurs. Using the result value to allocate memory leads to an undersized buffer allocation and later a potentially exploitable heap corruption condition. Ensure that integer overflow does not occur. Bug: 20923261 Change-Id: Id050a36b33196864bdd98b5ea24241f95a0b5d1f