summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorHenrik Engström <henrik.engstrom@sonymobile.com>2012-11-29 15:29:35 +0100
committerHenrik Baard <henrik.baard@sonymobile.com>2013-01-09 09:27:59 +0100
commit6393b07134f99ee827ebac2d339b0f5449addb0b (patch)
tree72c0b5051d567085049635f8ad023855ec981b49 /rs/java/android/renderscript/ProgramStore.java
parent9fae2ecc5fb777230bde74e4a099fb4e98bf34b4 (diff)
Fix possible integer overflow in MtpStorage
When converting the MB value MtpReserveSpace value to bytes there is a possible integer overflow since 3 integer values are multiplied, even though the result is stored in a long variable. This would be visible when the value is more than 2 GB. This is solved by making the constants longs instead of ints. Change-Id: I799129f7076a6e331cece17b5c05aed210499648
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions