OSDN Git Service

Make safe label more safe
authorTodd Kennedy <toddke@google.com>
Thu, 3 May 2018 09:05:04 +0000 (10:05 +0100)
committerRyan Longair <rlongair@google.com>
Tue, 12 Jun 2018 18:14:50 +0000 (11:14 -0700)
commit15f91bd849e4ec32de79c67a79cef4c72d2197df
tree88f181c2d8e1f87a1bb241626a2ec390a0403e37
parent5797ff6386b374359189d5927a0a7920f30edd50
Make safe label more safe

* limit the absolute maximum size of the label to 50000 characters
[which is probably far more than necessary, but, can be dialed down]

* use a string buffer while processing the string [instead of creating
multiple string objects]

Bug: 62537081
Test: Manual. Install APK in bug and see that it can be uninstalled
Change-Id: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
Merged-In: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
(cherry picked from commit 2263da9539daef134395226a2718ba2d7af7547d)
core/java/android/content/pm/PackageItemInfo.java