diff options
| author | 2024-05-20 18:04:35 +0000 | |
|---|---|---|
| committer | 2024-05-24 03:43:46 +0000 | |
| commit | 2f04963358987679cb4cbab085ec78c1b5e0ed0e (patch) | |
| tree | b0405eca1f73c8e07e20a9a1f455503e2452b7fd /libs/androidfw/StringPool.cpp | |
| 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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions