diff options
| author | 2024-05-29 11:49:47 -0700 | |
|---|---|---|
| committer | 2024-06-05 03:04:43 +0000 | |
| commit | 3186c7084373e714cc907daf6c52f26e1854ce4d (patch) | |
| tree | 9f335a0ffa4452687eeb696032117ace91914eec /libs/androidfw/ZipFileRO.cpp | |
| parent | 18bc6e82f0e117f59e4f477b0d578e1b48014e49 (diff) | |
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
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions