diff options
| author | 2016-04-18 14:55:15 -0700 | |
|---|---|---|
| committer | 2016-04-18 14:55:15 -0700 | |
| commit | 8478bf468e30a7c682b31a303a493fcc54b6fb9a (patch) | |
| tree | 7837ee096b3021661034eda16d0d6160117d7713 /libs/hwui/ProgramCache.cpp | |
| parent | 9d1d006cb3fb85304d1002b0d71c1b9fa11ad2f6 (diff) | |
Added extra validation for invalid paths.
In normal circumstances, StorageVolume can only be obtained through
StorageManager and hence it will contain a valid path internally. But
the path could be invalid in at least 2 occations:
- App maliciously changed it using reflection.
- Mounted volume was ejected.
This change improves OpenExternalDirectoryActivity so it returns a
RESULT_CANCELED upon receiveving an invalid path.
BUG: 27962875
Change-Id: Ide43968babaa37961c7b704bd289f44eac952e94
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions