commit | 4d8ed149894eff1e21195a29d939f2ec389fe5d7 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Mon May 04 17:57:24 2015 -0500 |
committer | Wei Jia <wjia@google.com> | Wed Jun 03 23:25:42 2015 +0000 |
tree | 3cbd28fab003a51ee63cefcdcb8e53c50882a684 | |
parent | 375e349556baa6a8ea59e963c33824e9063a0eca [diff] |
Prevent integer underflow if size is below 6 When processing 3GPP metadata, a subtraction operation may underflow and lead to a rather large linear byteswap operation in the subsequent framedata decoding code. Bound the 'size' value to prevent this from occurring. Bug: 20923261 Change-Id: I35dfbc8878c6b65cfe8b8adb7351a77ad4d604e5 (cherry picked from commit 9458e715d391ee8fe455fc31f07ff35ce12e0531)