diff options
author | Joshua J. Drake <android-open-source@qoop.org> | 2015-04-08 23:23:55 -0500 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2015-08-31 00:22:01 +0200 |
commit | 006d9021fc6c7ed492eda25d5e9ac1fb0b11a17b (patch) | |
tree | cfe6cbc101a9b9386e661606f88aed681fd18263 /libvideoeditor/osal | |
parent | 353b4e92b3494589f13d5632b3e5c333bdacd730 (diff) | |
download | frameworks_av-006d9021fc6c7ed492eda25d5e9ac1fb0b11a17b.zip frameworks_av-006d9021fc6c7ed492eda25d5e9ac1fb0b11a17b.tar.gz frameworks_av-006d9021fc6c7ed492eda25d5e9ac1fb0b11a17b.tar.bz2 |
Fix several ineffective integer overflow checks
Commit edd4a76 (which addressed bugs 15328708, 15342615, 15342751) added
several integer overflow checks. Unfortunately, those checks fail to take into
account integer promotion rules and are thus themselves subject to an integer
overflow. Cast the sizeof() operator to a uint64_t to force promotion while
multiplying.
Bug: 20139950
Change-Id: I2e70584ab566dbaa2fba4df6ca7a89b348ae9a06
Signed-off-by: Joshua J. Drake <android-open-source@qoop.org>
Tested-by: Moritz Bandemer <replicant@posteo.mx>
Diffstat (limited to 'libvideoeditor/osal')
0 files changed, 0 insertions, 0 deletions