diff options
Diffstat (limited to 'meta/recipes-support/sqlite/files/CVE-2025-7458.patch')
-rw-r--r-- | meta/recipes-support/sqlite/files/CVE-2025-7458.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/recipes-support/sqlite/files/CVE-2025-7458.patch b/meta/recipes-support/sqlite/files/CVE-2025-7458.patch deleted file mode 100644 index 6b041d9332..0000000000 --- a/meta/recipes-support/sqlite/files/CVE-2025-7458.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From b816ca9994e03a8bc829b49452b8158a731e81a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: drh <> | ||
3 | Date: Thu, 16 Mar 2023 20:54:29 +0000 | ||
4 | Subject: [PATCH] Correctly handle SELECT DISTINCT ... ORDER BY when all of the | ||
5 | result set terms are constant and there are more result set terms than ORDER | ||
6 | BY terms. Fix for these tickets: [c36cdb4afd504dc1], [4051a7f931d9ba24], | ||
7 | [d6fd512f50513ab7]. | ||
8 | |||
9 | FossilOrigin-Name: 12ad822d9b827777526ca5ed5bf3e678d600294fc9b5c25482dfff2a021328a4 | ||
10 | |||
11 | CVE: CVE-2025-7458 | ||
12 | Upstream-Status: Backport [github.com/sqlite/sqlite/commit/b816ca9994e03a8bc829b49452b8158a731e81a9] | ||
13 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
14 | --- | ||
15 | sqlite3.c | 4 ++++ | ||
16 | 1 file changed, 4 insertions(+) | ||
17 | |||
18 | diff --git a/sqlite3.c b/sqlite3.c | ||
19 | index 19d0438..6d92184 100644 | ||
20 | --- a/sqlite3.c | ||
21 | +++ b/sqlite3.c | ||
22 | @@ -156989,6 +156989,10 @@ static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){ | ||
23 | if( pFrom->isOrdered==pWInfo->pOrderBy->nExpr ){ | ||
24 | pWInfo->eDistinct = WHERE_DISTINCT_ORDERED; | ||
25 | } | ||
26 | + if( pWInfo->pSelect->pOrderBy | ||
27 | + && pWInfo->nOBSat > pWInfo->pSelect->pOrderBy->nExpr ){ | ||
28 | + pWInfo->nOBSat = pWInfo->pSelect->pOrderBy->nExpr; | ||
29 | + } | ||
30 | }else{ | ||
31 | pWInfo->nOBSat = pFrom->isOrdered; | ||
32 | pWInfo->revMask = pFrom->revLoop; | ||