commit | 6393b07134f99ee827ebac2d339b0f5449addb0b | [log] [tgz] |
---|---|---|
author | Henrik Engström <henrik.engstrom@sonymobile.com> | Thu Nov 29 15:29:35 2012 +0100 |
committer | Henrik Baard <henrik.baard@sonymobile.com> | Wed Jan 09 09:27:59 2013 +0100 |
tree | 72c0b5051d567085049635f8ad023855ec981b49 | |
parent | 9fae2ecc5fb777230bde74e4a099fb4e98bf34b4 [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