commit | 2f04963358987679cb4cbab085ec78c1b5e0ed0e | [log] [tgz] |
---|---|---|
author | lpeter <lpeter@google.com> | Mon May 20 18:04:35 2024 +0000 |
committer | lpeter <lpeter@google.com> | Fri May 24 03:43:46 2024 +0000 |
tree | b0405eca1f73c8e07e20a9a1f455503e2452b7fd | |
parent | 9ebd148a185f7ec1ef0a6646ad5ce9da6a385b9d [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 Merged-In: I4e3f4881742f0e865eaefabb8ee134c67c6b53d9 Change-Id: I81f5ed43342d5b906f36f3733c2115232da90ac1