SQLite Forum

IS NULL optimization on NOT NULL constraints breaks on corrupted databases
Login
> did GDAL do an sqlite3_column_text() and get back a NULL pointer, then dereference the NULL pointer, thus causing a segfault. That would be a bug in GDAL. The sqlite3_column_text() might return NULL, even for a NOT NULL column, for example following an OOM error

Fair enough. Here, it was sqlite3_get_table() that was used. Can it return a success error code and return NULL in one of the pazResult[] items, in situtations where this would normally not happen (like an OOM error as you mentioned) ?