commit | 192e66111cf2292d9d7b7f4b9a956d19f251bbc3 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Mon May 04 17:57:24 2015 -0500 |
committer | worker <worker@fairphone.com> | Fri Oct 30 17:14:40 2015 +0100 |
tree | c2474a8a0855e754bbc5015bc5d47667f6cd9f03 | |
parent | 818fe9669b5fb4fc8818009c7dc0573bfec65262 [diff] |
FP2-1575: Prevent integer underflow if size is below 6 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)