Adds validation for lengths and counts read from i18n binary data before allocating arrays.
- `RuleBasedBreakIterator` and `UBiDiProps` validate declared lengths against the remaining data. - `ZoneInfoFile` validates transition and rule counts against the limits already used by `ZoneRules`. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Added a test case for invalid ZoneRules type - initial commit Changes: https://git.openjdk.org/jdk/pull/33420/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33420&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8393882 Stats: 340 lines in 6 files changed: 328 ins; 0 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/33420.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33420/head:pull/33420 PR: https://git.openjdk.org/jdk/pull/33420
