Disallow dangerous zip entry names
Implement SafeZipPathValidatorCallback which throws ZipException if the zip entry name contains ".." or starts with "/". The callback is then set in RuntimeInit. This feature will be enabled for apps with targetSDK >= U. Bug: 252994429 Bug: 242716250 Test: atest FrameworksCoreTests:com.android.internal.os.SafeZipPathValidatorCallbackTest Change-Id: Idef0f78a9da86d7606681a8fbc3f61b1be99adaf
Loading
Please register or sign in to comment