Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: third_party/sqlite/sqlite-src-3100200/src/auth.c

Issue 1610543003: [sql] Import reference version of SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3100200/src/auth.c
diff --git a/third_party/sqlite/sqlite-src-3080704/src/auth.c b/third_party/sqlite/sqlite-src-3100200/src/auth.c
similarity index 98%
copy from third_party/sqlite/sqlite-src-3080704/src/auth.c
copy to third_party/sqlite/sqlite-src-3100200/src/auth.c
index 1680c9a7c2f8a5c84429abc75d0e84be0e0ec936..9768fc2fc0efbd8393557d7b60af3216bde16de1 100644
--- a/third_party/sqlite/sqlite-src-3080704/src/auth.c
+++ b/third_party/sqlite/sqlite-src-3100200/src/auth.c
@@ -72,6 +72,9 @@ int sqlite3_set_authorizer(
int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),
void *pArg
){
+#ifdef SQLITE_ENABLE_API_ARMOR
+ if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
+#endif
sqlite3_mutex_enter(db->mutex);
db->xAuth = (sqlite3_xauth)xAuth;
db->pAuthArg = pArg;
« no previous file with comments | « third_party/sqlite/sqlite-src-3100200/src/attach.c ('k') | third_party/sqlite/sqlite-src-3100200/src/backup.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698