diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-07-25 14:52:14 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@google.com> | 2018-12-01 17:23:05 -0700 |
commit | e56d8b8a43dc6e0b77806baca722659179488fb2 (patch) | |
tree | 731ba3f6bca50178b598c1ebc22a6b8f68005cb7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b17c8e73cb01e9630839e2c76d843d15ef567e3c (diff) |
Extend SQLiteQueryBuilder for update and delete.
Developers often accept selection clauses from untrusted code, and
SQLiteQueryBuilder already supports a "strict" mode to help catch
SQL injection attacks. This change extends the builder to support
update() and delete() calls, so that we can help secure those
selection clauses too.
Bug: 111085900
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Merged-In: Ib4fc8400f184755ee7e971ab5f2095186341730c
Change-Id: Ib4fc8400f184755ee7e971ab5f2095186341730c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions