OSDN Git Service

Make safe label more safe
authorTodd Kennedy <toddke@google.com>
Thu, 3 May 2018 09:05:04 +0000 (10:05 +0100)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 3 Aug 2018 19:06:00 +0000 (19:06 +0000)
commit0e50de324160cb3a9900939b780aab884519b2fb
treed8383f3c7dc9450d77a09b4dc39943d67ea2058c
parentdc7662201a9839c1b05cccd588e98d2b47c38eae
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