Add the protection to avoid Integer overflow in BinaryXmlSerializer.java

Ignore-AOSP-First: security vulnerabilities

Bug: 307288067
Test: atest BinaryXmlTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8207203d4ee4210032a5d4e94d3cbf4635d7a890)
Merged-In: Id52bc0d0a0d46c3c31d9bb090466f8fbae4bd35a
Change-Id: Id52bc0d0a0d46c3c31d9bb090466f8fbae4bd35a
1 file changed
tree: a813471f5f325d80e6acbe82d341e8ba2ef5b176
  1. build/
  2. java/
  3. javatests/
  4. jni/
  5. tools/
  6. .gitignore
  7. Android.bp
  8. OWNERS
  9. PREUPLOAD.cfg
  10. README.md
  11. TEST_MAPPING
README.md

frameworks/libs/modules-utils/

Libraries and utilities intended for use by module and framework code.

Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.

Java code

This project uses a single source path for Java code. All Java code should go in the java directory with subdirectories corresponding to the java package. Android.bp files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.

Tests for java code should go in the javatests directory and follow the same structure.