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

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

Throw if sqlite runs out of memory

The following methods can fail due to an out-of-memory condition:
 * sqlite3_column_blob()
 * sqlite3_column_text16()
 * sqlite3_column_bytes()
 * sqlite3_column_bytes16()

If they return NULL or zero, throw SQLiteOutOfMemoryException if
sqlite reported SQLITE_NOMEM.  This change is made only to the
SQLiteRawStatement APIs, which have not yet been released.  There is
no change to legacy APIs.

Test: atest
 * FrameworksCoreTests:android.database
 * CtsDatabaseTestCases

Flag: EXEMPT bugfix
Bug: 343325631
Change-Id: Ibc1d044281ff5afd336572869bd736b26bb4c97d
parent 18bc6e82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment