| commit | a7a56c625e6801276e470bb346e6c08bc3082a99 | [log] [tgz] |
|---|---|---|
| author | Varun Shah <varunshah@google.com> | Thu Jul 24 23:20:17 2025 +0000 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Oct 10 14:10:06 2025 -0700 |
| tree | 24c8c98ff3e0213082f65d867dc4cedd7f0c513c | |
| parent | 208cb98faedaaeecc8c9fcd18e7206b17794881f [diff] |
Don't allow read truncation or appending for file operations. If a caller attempts to read a file with the truncation or append bits and doesn't specify the write bit as well, silently drop the invalid bits to prevent unintended changes. Bug: 414387646 Test: atest CtsContentProviderTestCases Flag: EXEMPT security fix (cherry picked from commit f8099b069367df749a4c101b5d7f9020d83cb660) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:fc0dcc7ca0fd102d61bef8bd41d9a037bd49f6dd Merged-In: I1a8993d99d1f381e1122b304d223a5c10e4578ce Change-Id: I1a8993d99d1f381e1122b304d223a5c10e4578ce