mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
OOM failures on sqlite3_errmsg16() in an app-defined function are no longer
benign. FossilOrigin-Name: 9efb223f4ce8ccc00515f8f016f7c494c9ae5096
This commit is contained in:
@@ -166,9 +166,7 @@ static void test_agg_errmsg16_final(sqlite3_context *ctx){
|
||||
const void *z;
|
||||
sqlite3 * db = sqlite3_context_db_handle(ctx);
|
||||
sqlite3_aggregate_context(ctx, 2048);
|
||||
sqlite3BeginBenignMalloc();
|
||||
z = sqlite3_errmsg16(db);
|
||||
sqlite3EndBenignMalloc();
|
||||
sqlite3_result_text16(ctx, z, -1, SQLITE_TRANSIENT);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user