summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2014-09-10 16:59:11 +0100
committerNeil Fuller <nfuller@google.com>2014-09-11 16:29:51 +0100
commit4e95d23e24ff6fd2810ee5cff409a9f1764eb003 (patch)
treef3b319b310eb715df5d60ca8cad68adf1c9cc717 /annotations/generate_annotated_java_files.py
parent8806710d7a5cd6a168f2463de21498c58f70948a (diff)
Introduce checks for integer overflow during division.
Historically, Android would refuse to perform calculations on memory grounds for large values or would cast to an int and produce incorrect result for diffScales outside of the int range. This change adds a check to prevent scale overflow for large scale division. Bug: 17393664 (cherry picked from commit f7cf74a44b2f5ff863de0d82d2efb6d17240ab3e) Change-Id: I94c829f184804a4fcbed67a180b7ce9684652311
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions