diff options
| author | 2024-12-11 10:49:17 +0100 | |
|---|---|---|
| committer | 2024-12-11 16:59:23 +0100 | |
| commit | ce113b78aac2171d50f4a8912f1c068080887147 (patch) | |
| tree | b9ffffb587070847e1625d82f41a40d4a32f0ce6 /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | 10b79530a72c088a3a54588619edf18e310d9be7 (diff) | |
Build.parseFullVersion: verify values are within acceptable range
When converting a major.minor version String to a Java int, only so many
digits can fit. This puts a hard limit on the maximum value of the major
and minor versions:
- major must be less than 21_474
- minor must be less than 100_000
Update Build.parseFullVersion to fail if either value is larger than the
limit.
Note: neither major nor minor version can be negative:
Build.parseFullVersion already checks for that.
Bug: 380245536
Test: atest FrameworksCoreTests:android.os.BuildTest
Flag: EXEMPT trivial bugfix
Change-Id: I5004ca7c0553110cdab3fe66fe15ece6ce6846ba
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions