commit | 6cc7fe0dc58ae5a47cdcd125c83df60e08719fa2 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Mon May 04 17:57:24 2015 -0500 |
committer | The Android Automerger <android-build@android.com> | Mon Jul 27 12:38:43 2015 -0700 |
tree | f9764d7b5af3d29077f0fcdda7d0e6b37dc17ce5 | |
parent | b242d244fdcd5ffac5bbe281fe96a796f7fafd75 [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)