diff options
author | Pavan Kumar M <rpavan@codeaurora.org> | 2020-05-21 20:19:03 +0530 |
---|---|---|
committer | Pavan Kumar M <rpavan@codeaurora.org> | 2020-07-08 04:12:51 +0000 |
commit | 7adad1d8f2b0edd0a167d7ab822e2bbda18a67bf (patch) | |
tree | 3b13f16dd96f5a7996a50e2857370abfe3209cf6 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 16b8c9ae26121add1f1273e2f31922ab469a48bc (diff) |
Gracefully handle integer overflows.
Avoid recording negative data by doing integer-based
math as much as possible, but switch to double-based
math if we detect that we'd end up causing an overflow.
Test :
- Builds, Boots
- High data throughput scenarios
- NetworkStatsHistoryTest, NetworkStatsCollectionTest
Bug: 119527458
Change-Id: I55d4aa649bea3ae201ad513074ff2b71cb918dad
CRs-Fixed: 2608836
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions