diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2014-09-10 13:14:28 -0700 |
---|---|---|
committer | Jeffrey Vander Stoep <jeffv@google.com> | 2014-09-10 21:32:24 +0000 |
commit | d4f30d0d1544f8967ee5763c4a1680cb0553039f (patch) | |
tree | d772cad94baeb75fff4c777295c33e33a0edbf80 /android/PhoneNumberUtilsTest.cpp | |
parent | e6db643fead20aca8f2d8f989c0684afa545ac1e (diff) |
Fix world-readable permissions due to sqlite race condition
Existing code uses umask() to temporarily modify the file permissions for
open(). A race condition can occur where a second thread reads in the
temporary value, saves it, and then restores the file to the temporary value
resulting in world-readable permissions. Backporting a known fix:
http://www.sqlite.org/src/info/6c4c2b7dba
Bug: 15288755
Change-Id: I89779f3a5ba0bec181d6614b29b1e26ea4f4f049
Diffstat (limited to 'android/PhoneNumberUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions