Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dee229be authored by Lee Shombert's avatar Lee Shombert
Browse files

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
parent bfb0a089
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment