diff options
| author | 2024-12-10 10:41:29 -0800 | |
|---|---|---|
| committer | 2024-12-10 12:24:30 -0800 | |
| commit | dee229be307d1847b9c6ca0534b820b7db8ee2eb (patch) | |
| tree | d68805cf3075a2579fae7a30412f88c640e532a0 /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | bfb0a0892a14d35dcd022476a4dd4f95c7ff7647 (diff) | |
Correct check on SQLiteRawStatement.getColumnName
The function sqlite3_column_name() can be called on any prepared
statement; it is not a function of the data row that may have been
retrieved. Therefore, the bounds check for getColumnName() should use
sqlite3_column_count() and not sqlite3_data_count() (which requires a
row of data in the prepared statement).
Two test cases have been added.
Flag: EXEMPT bug-fix
Bug: 359676342
Test: atest
* FrameworksCoreTests:android.database
* CtsDatabaseTestCases
Change-Id: Id3908af9a43c1580ecaa3cf2b85f8c2e50204489
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions