Small. Fast. Reliable.
Choose any three.

SQLite Requirement Matrix Details
enable_load_extension.html

Index Summary Markup Original


R-25540-36848-64613-55100-38595-19137-49959-42593 tcl slt th3 src

So as not to open security holes in older applications that are unprepared to deal with extension loading, and as a means of disabling extension loading while evaluating user-entered SQL, the following API is provided to turn the sqlite3_load_extension() mechanism on and off.

/* IMP: R-25540-36848 */
# EVIDENCE-OF: R-25540-36848 So as not to open security holes in older
# applications that are unprepared to deal with extension loading, and
# as a means of disabling extension loading while evaluating
# user-entered SQL, the following API is provided to turn the
# sqlite3_load_extension() mechanism on and off.

R-55888-39002-08567-49374-03343-41740-10082-36394 tcl slt th3 src

Extension loading is off by default.

/* IMP: R-55888-39002 */
# EVIDENCE-OF: R-55888-39002 Extension loading is off by default.

R-09224-24423-49994-35052-44782-07327-29162-57753 tcl slt th3 src

Call the sqlite3_enable_load_extension() routine with onoff==1 to turn extension loading on and call it with onoff==0 to turn it back off again.

/* IMP: R-09224-24423 */
# EVIDENCE-OF: R-09224-24423 Call the sqlite3_enable_load_extension()
# routine with onoff==1 to turn extension loading on and call it with
# onoff==0 to turn it back off again.

R-18130-23470-26620-07261-16274-17871-22790-47651 tcl slt th3 src

This interface enables or disables both the C-API sqlite3_load_extension() and the SQL function load_extension().

/* IMP: R-18130-23470 */
# EVIDENCE-OF: R-18130-23470 This interface enables or disables both the
# C-API sqlite3_load_extension() and the SQL function load_extension().

R-64113-45477-15405-35111-28772-22089-43281-64875 tcl slt th3 src

Use sqlite3_db_config(db,SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION,..) to enable or disable only the C-API.

/* IMP: R-64113-45477 */
# EVIDENCE-OF: R-64113-45477 Use
# sqlite3_db_config(db,SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION,..) to
# enable or disable only the C-API.