commit | 131a1d6a4082a151aa145cfcab8e13ecaea9f4a3 | [log] [tgz] |
---|---|---|
author | lpeter <lpeter@google.com> | Mon May 20 18:04:35 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 06 00:19:28 2024 +0000 |
tree | 1f0e00ebdeb2fb78096bb46867fb95cf19f631a2 | |
parent | f6d65708e27cfb487a1a240bbd5eb8a25f566286 [diff] |
Add the protection to avoid data overflow in BinaryXmlSerializer.java Add an integer overflow check in the writeShort in these two methods: 1.BinaryXmlSerializer#attributeBytesHex 2.BinaryXmlSerializer#attributeBytesBase64 Bug: 307288067 Test: atest BinaryXmlTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2f04963358987679cb4cbab085ec78c1b5e0ed0e) Merged-In: I81f5ed43342d5b906f36f3733c2115232da90ac1 Change-Id: I81f5ed43342d5b906f36f3733c2115232da90ac1