Fix CVE-2017-10989 in sqlite
Change-Id: I556a453f386e887abee77a4dc147eae45970a61c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
7f6f1d7e30
commit
e6fe342abb
15
src/3rdparty/sqlite/patches/0001-Fix-CVE-2017-10989-in-sqlite.patch
vendored
Normal file
15
src/3rdparty/sqlite/patches/0001-Fix-CVE-2017-10989-in-sqlite.patch
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/src/3rdparty/sqlite/sqlite3.c b/src/3rdparty/sqlite/sqlite3.c
|
||||
index 7f5e75921f..f5c6180a03 100644
|
||||
--- a/src/3rdparty/sqlite/sqlite3.c
|
||||
+++ b/src/3rdparty/sqlite/sqlite3.c
|
||||
@@ -165733,6 +165733,10 @@ static int getNodeSize(
|
||||
rc = getIntFromStmt(db, zSql, &pRtree->iNodeSize);
|
||||
if( rc!=SQLITE_OK ){
|
||||
*pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db));
|
||||
+ }else if( pRtree->iNodeSize<(512-64) ){
|
||||
+ rc = SQLITE_CORRUPT;
|
||||
+ *pzErr = sqlite3_mprintf("undersize RTree blobs in \"%q_node\"",
|
||||
+ pRtree->zName);
|
||||
}
|
||||
}
|
||||
|
4
src/3rdparty/sqlite/sqlite3.c
vendored
4
src/3rdparty/sqlite/sqlite3.c
vendored
@ -165733,6 +165733,10 @@ static int getNodeSize(
|
||||
rc = getIntFromStmt(db, zSql, &pRtree->iNodeSize);
|
||||
if( rc!=SQLITE_OK ){
|
||||
*pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db));
|
||||
}else if( pRtree->iNodeSize<(512-64) ){
|
||||
rc = SQLITE_CORRUPT;
|
||||
*pzErr = sqlite3_mprintf("undersize RTree blobs in \"%q_node\"",
|
||||
pRtree->zName);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user