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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp

Issue 2769033002: [sql] WebSQL xGetLastError() can be called with null buffer. (Closed)
Patch Set: Created 3 years, 9 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/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp
index bc4fd2feadb8e6c1cdc040883656c933f22166a0..4e614bf0963abd7ebc1e990448af4eb053b4b9e6 100644
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp
@@ -155,10 +155,9 @@ int chromiumCurrentTime(sqlite3_vfs* vfs, double* prNow) {
return wrappedVfs->xCurrentTime(wrappedVfs, prNow);
}
-int chromiumGetLastError(sqlite3_vfs* vfs, int e, char* s) {
- // xGetLastError() has never been used by SQLite. The implementation in
- // os_win.c indicates this is a reasonable implementation.
- *s = '\0';
+int chromiumGetLastError(sqlite3_vfs* vfs, int nBuf, char* zBuf) {
+ if (nBuf && zBuf)
+ *zBuf = '\0';
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698