summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2019-07-16 16:50:42 -0600
committerJeff Sharkey <jsharkey@android.com>2019-07-18 16:09:01 -0600
commitae6a466668a58d5d882278bed146d349ff55e5b2 (patch)
tree28be7cc522f49b34c8cdc1583f083e91d8fa0153 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent38dd28caacd18b1e7d0e2b611db7cb803d84240c (diff)
Strict SQLiteQueryBuilder needs to be stricter.
Malicious callers can leak side-channel information by using subqueries in any untrusted inputs where SQLite allows "expr" values. This change offers setStrictGrammar() to prevent this by outright blocking subqueries in WHERE and HAVING clauses, and by requiring that GROUP BY and ORDER BY clauses be composed only of valid columns. This change also offers setStrictColumns() to require that all untrusted column names are valid, such as those in ContentValues. Relaxes to always allow aggregation operators on returned columns, since untrusted callers can always calculate these manually. Bug: 135270103, 135269143 Test: atest android.database.sqlite.cts.SQLiteQueryBuilderTest Test: atest FrameworksCoreTests:android.database.sqlite.SQLiteTokenizerTest Change-Id: I109fbb51e4bd2ed3c3b23a7c5f0cb795f7d8b984
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions