diff options
author | Pavan Kumar M <quic_rpavan@quicinc.com> | 2020-07-21 14:18:23 +0530 |
---|---|---|
committer | Pavan Kumar M <quic_rpavan@quicinc.com> | 2020-07-28 11:36:49 +0530 |
commit | 3708b68405b5e9ad64899116648728ae73c4dfcf (patch) | |
tree | 085df9718a791051088e53748b44853917038922 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 9e9ce9f9efa6d07450d976dfcbc1d666e51a11fc (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,
NetworkStatsTest
Bug: 119527458
Change-Id: I55d4aa649bea3ae201ad513074ff2b71cb918dad
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions