summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-09-21 14:51:09 -0600
committerAndreas Gampe <agampe@google.com>2017-10-31 14:51:58 -0700
commitc1149c9797e42f10c82cdcc8d1e69861e0114c02 (patch)
tree88dbad350a989002ee872c13c47b7876e5d73eba /opengl/tests/gl_basic/gl_basic.cpp
parente2cff6afae7c6777dfbd0714ec805cb6dd20cf90 (diff)
Enable clang-tidy for sensitive domain.
Since installd has broad access to lots of sensitive data, enable as many security-related tidy checks as possible to help avoid bugs. This change provides a default implementation of create_cache_path(), calculate_odex_file_path(), and calculate_oat_file_path(), along with tests to verify behavior against old code. Replace "dir_rec_t" with std::string, since that's really what it's been all along. Increase paranoia of path checking to reject any paths containing "..", regardless of where it occurs in path string. Stricter checking of instruction set values. Remove now-unused char* manipulation utility methods; people should be using std::string instead. (cherry picked from commit 1b9d9a6006f4159e2cc2c41330f316b1fdc53fe1) Test: adb shell /data/nativetest/installd_cache_test/installd_cache_test Test: adb shell /data/nativetest/installd_service_test/installd_service_test Test: adb shell /data/nativetest/installd_utils_test/installd_utils_test Bug: 36655947 Merged-In: Ib706f0b8c1878be64710c00f56dccdfbe215570f Change-Id: Ib706f0b8c1878be64710c00f56dccdfbe215570f
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions