On 11/2/16, LacaK <[email protected]> wrote:
> Hi *,
>
> when I pass to sqlite3_table_column_metadata() function 2,3,4 parameters
> as null i receive SIGSEGV.
> Is this expected behavior ?

Yes.  The interface requires a non-NULL value for the 3rd parameter.
(The 2nd and 4th parameters may be NULL.)

If you want to avoid a crash in this scenario, then recompile using
-DSQLITE_ENABLE_API_ARMOR and you will get an SQLITE_MISUSE error when
invoking sqlite3_table_column_metadata() with a NULL tablename
parameter.

-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to