summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2022-11-01 11:50:40 +0000
committer Azhara Assanova <azharaa@google.com> 2022-11-08 14:48:26 +0000
commitef3688b9477602323c487c14d98f782208ed70a8 (patch)
tree033e4be257e3a39b6d3d13fcdcac55970e044c09 /api/api.go
parent79605eb99412d26f63856d59bb559cb2d8078551 (diff)
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions