Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot c0ec09d417 !122 [sync] PR-118: 同步社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-11-12 05:53:43 +00:00
Wang_M a88f4c308c sync the patch from 2203
Signed-off-by: Wang_M <815543835@qq.com>

Signed-off-by: Wang_M <815543835@qq.com>

Signed-off-by: Wang_M <815543835@qq.com>
(cherry picked from commit b3b1fcc0b6)
2024-11-11 17:38:00 +08:00
openeuler-ci-bot a64a525169 !115 sync the CVE-2023-7104 from 22.03
From: @noodlesland 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-09-05 10:10:10 +00:00
Wang_M 347848fa14 sync the patch from 22.03 2024-09-05 04:10:05 +00:00
openeuler-ci-bot 928f32f54d !110 Bump to 3.42.0
From: @zhengzhenyu 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-02-29 06:06:11 +00:00
Zhenyu Zheng 56bc0cbcce Bump to 3.42.0
Bump to 3.42.0 to fix CVE-2024-0232

Signed-off-by: Zhenyu Zheng <zheng.zhenyu@outlook.com>
2024-02-28 18:11:48 +08:00
openeuler-ci-bot 418511d548 !99 fix issue CVE-2023-7104
From: @Jeremyzz 
Reviewed-by: @zwtmichael, @dillon_chen 
Signed-off-by: @dillon_chen
2024-01-04 08:26:39 +00:00
mazhao a4cd646a0c fix the CVE-2023-7104
Signed-off-by: mazhao <mazhao12@huawei.com>
2024-01-03 12:02:25 +08:00
openeuler-ci-bot 40cd9b59ce !92 fix issue CVE-2023-36191
From: @zwtmichael 
Reviewed-by: @wbq_sky, @slovezt 
Signed-off-by: @wbq_sky
2023-08-08 03:08:44 +00:00
zwtmichael d5a9995a67 fix CVE-2023-36191
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
2023-08-07 15:17:42 +08:00
openeuler-ci-bot 3b8ef70260 !86 remove fail testcase for loongarch
From: @zhangwenlong01 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-02-02 03:26:14 +00:00
Wenlong Zhang 29347b1527 remove fail testcase for loongarch 2023-01-14 09:38:22 +08:00
openeuler-ci-bot 36052db9a0 !83 Fix CVE-2022-46908
From: @zwtmichael 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-12-16 05:05:55 +00:00
zwtmichael d5bf7b294a Fix safe mode authorizer callback to reject disallowed UDFs
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
2022-12-15 11:43:09 +08:00
openeuler-ci-bot 4255fd05db !81 [sync] PR-80: fix build problem
From: @openeuler-sync-bot 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-09-15 02:00:39 +00:00
zwtmichael 8222faba44 fix build problem
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit 4287815f16)
2022-09-14 15:44:43 +08:00
openeuler-ci-bot b6baf940d4 !71 fix integer overflow on gigabyte string
From: @zwtmichael 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-09-05 09:35:02 +00:00
zwtmichael 76b8dd730a fix integer overflow on multi-gigabyte string
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
2022-09-05 16:55:54 +08:00
zwtmichael 7d7e9e3d73 update to 3.37.2
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
2022-09-05 15:36:34 +08:00
openeuler-ci-bot 7cae1352c1 !65 update to 3.37.2
From: @zwtmichael 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-08-31 12:46:15 +00:00
zwtmichael d8002ef402 update to 3.37.2
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
2022-08-30 17:08:29 +08:00
openeuler-ci-bot 538587881d !60 修复 CVE-2022-35737
From: @liusirui91 
Reviewed-by: @shikemeng, @dillon_chen 
Signed-off-by: @dillon_chen
2022-08-16 04:13:35 +00:00
liusirui 419bd31973 fix CVE-2022-35737 2022-08-16 10:08:56 +08:00
openeuler-ci-bot c135d8d9cf !54 【轻量级 PR】:fix spec changelog date error
From: @jxy_git 
Reviewed-by: @bzhaoop 
Signed-off-by: @bzhaoop
2022-06-14 00:52:52 +00:00
jiangxinyu a5ad049268 fix spec changelog date error 2022-06-08 06:56:04 +00:00
openeuler-ci-bot ae04b38c7e !49 Fix the CVE-2021-36690.
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-11-27 09:13:46 +00:00
wbq_sky 281ace3ce4 fix the CVE-2021-36690
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-11-27 14:08:25 +08:00
openeuler-ci-bot fa6537c498 !47 Update the sqlite to 3.36
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-11-25 07:34:38 +00:00
wbq_sky 70773bbab5 update to 3.36.0
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-11-25 08:45:52 +08:00
openeuler-ci-bot 17f47bf553 !40 Fix the uninitialized value used in pattern compare function.
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-09-27 12:01:15 +00:00
wbq_sky c7b6d9b65f fix the uninitialized value used in pattern match
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-09-26 16:28:27 +08:00
openeuler-ci-bot 80491f4558 !39 Fix a problem caused by using an SQL variable in an over clause within a trigger.
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-09-13 12:28:19 +00:00
wbq_sky b5acf1da61 fix the null reference in the over clause within trigger
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-09-10 14:19:45 +08:00
openeuler-ci-bot 4cbaf5da18 !38 fix the problem of the infinite loop in trim function.
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-09-10 02:59:56 +00:00
wbq_sky d81186e427 fix the infinite loop in the trim function while the pattern is well formed.
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-09-10 10:54:13 +08:00
openeuler-ci-bot d0aa7d2f6e !30 update 3.34.0
From: @markeryang
Reviewed-by: @liuzhiqiang26
Signed-off-by: @volcanodragon
2021-02-01 09:54:48 +08:00
markeryang 518b78e0c5 update to 3.34.0 2021-01-28 16:06:55 +08:00
openeuler-ci-bot e27e46aeb6 !27 update source0 url in spec file
Merge pull request !27 from lihaotian/master
2020-09-03 11:57:20 +08:00
lihaotian9 77937f0d9f Update the source0 url in spec file 2020-09-03 10:21:16 +08:00
openeuler-ci-bot 52f8d4d496 !25 更新yaml文件
Merge pull request !25 from linfeilong835/master
2020-08-11 14:28:42 +08:00
linfeilong835 9e1b3629dc update sqlite.spec. 2020-08-10 15:37:33 +08:00
linfeilong835 5442a2c86a update sqlite.yaml. 2020-08-10 15:36:27 +08:00
openeuler-ci-bot 062ced1b4f !22 update package to 3.32.3
Merge pull request !22 from 季新杰/master
2020-07-22 09:45:03 +08:00
ji_xinjie c37816cdfa update package to 3.32.3 2020-07-21 14:52:38 +08:00
openeuler-ci-bot 9fa98ae7c4 !21 add yaml file for ci
Merge pull request !21 from liuzhiqiang/master
2020-07-02 17:09:33 +08:00
Zhiqiang Liu f60035837d add yaml file for ci 2020-07-02 12:49:42 +08:00
openeuler-ci-bot c96547d1e4 !20 rename patches
Merge pull request !20 from lfl/master
2020-06-30 21:30:45 +08:00
lfl b3265a3d45 重命名 6061-Fix-CVE-2020-13632.patch 为 0064-Fix-CVE-2020-13632.patch 2020-06-30 11:21:35 +08:00
lfl 71e9ac7753 重命名 6060-Fix-CVE-2020-13630.patch 为 0063-Fix-CVE-2020-13630.patch 2020-06-30 11:21:22 +08:00
lfl ead4e2dcb8 重命名 6059-Fix-CVE-2020-13435.patch 为 0062-Fix-CVE-2020-13435.patch 2020-06-30 11:21:08 +08:00
lfl 4814a7cc8c 重命名 6058-Fix-CVE-2020-13434.patch 为 0061-Fix-CVE-2020-13434.patch 2020-06-30 11:20:57 +08:00
lfl c1061356e6 重命名 6057-Fix-CVE-2020-11655.patch 为 0060-Fix-CVE-2020-11655.patch 2020-06-30 11:20:31 +08:00
lfl 6a69bd9a2b 重命名 6056-Fix-CVE-2020-9327.patch 为 0059-Fix-CVE-2020-9327.patch 2020-06-30 11:20:17 +08:00
lfl fbd7b589dc 重命名 6055-Fix-CVE-2018-20505.patch 为 0058-Fix-CVE-2018-20505.patch 2020-06-30 11:20:05 +08:00
lfl 1510f8e16c 重命名 6054-Fix-the-zipfile-function-in-the-zipfile-extension-so.patch 为 0057-Fix-the-zipfile-function-in-the-zipfile-extension-so.patch 2020-06-30 11:19:48 +08:00
lfl 4028658d2d 重命名 6053-Fix-CVE-2019-20218-Do-not-attempt-to-unwind-the-WITH-stack-in-the-Parse.patch 为 0056-Fix-CVE-2019-20218-Do-not-attempt-to-unwind-the-WITH-stack-in-the-Parse.patch 2020-06-30 11:19:34 +08:00
lfl 6478b567f5 重命名 6052-Fix-CVE-2019-19926-Continuation-of-e2bddcd4c55ba3cb-Add-another-spot-wh.patch 为 0055-Fix-CVE-2019-19926-Continuation-of-e2bddcd4c55ba3cb-Add-another-spot-wh.patch 2020-06-30 11:19:20 +08:00
lfl 4db92c1188 重命名 6051-Fix-CVE-2019-19925-Fix-the-zipfile-extension-so-that-INSERT-works-even-.patch 为 0054-Fix-CVE-2019-19925-Fix-the-zipfile-extension-so-that-INSERT-works-even-.patch 2020-06-30 11:19:07 +08:00
lfl 8b8c74476d 重命名 6050-Fix-CVE-2019-19924-When-an-error-occurs-while-rewriting-the-parser-tree.patch 为 0053-Fix-CVE-2019-19924-When-an-error-occurs-while-rewriting-the-parser-tree.patch 2020-06-30 11:18:51 +08:00
lfl 75b921ed90 重命名 6049-Fix-CVE-2019-19923-Continue-to-back-away-from-the-LEFT-JOIN-optimizatio.patch 为 0052-Fix-CVE-2019-19923-Continue-to-back-away-from-the-LEFT-JOIN-optimizatio.patch 2020-06-30 11:18:38 +08:00
lfl 59d947b664 重命名 6048-Fix-CVE-2019-9937.patch 为 0051-Fix-CVE-2019-9937.patch 2020-06-30 11:18:22 +08:00
lfl 0e1075aa90 重命名 6047-Fix-CVE-2019-9936.patch 为 0050-Fix-CVE-2019-9936.patch 2020-06-30 11:18:05 +08:00
lfl 8a03c1f269 重命名 6046-Fix-CVE-2019-19646.patch 为 0049-Fix-CVE-2019-19646.patch 2020-06-30 11:17:50 +08:00
lfl cfca7355f4 重命名 6045-sqlite-CVE-2019-16168.patch 为 0048-sqlite-CVE-2019-16168.patch 2020-06-30 11:17:38 +08:00
lfl a4d5eb0835 重命名 6044-sqlite-CVE-2019-8457-out-of-bounds-read.patch 为 0047-sqlite-CVE-2019-8457-out-of-bounds-read.patch 2020-06-30 11:17:25 +08:00
lfl 6753ad4ed1 重命名 6043-Fix-a-potential-32-bit-integer-overflow-in-the-showd.patch 为 0046-Fix-a-potential-32-bit-integer-overflow-in-the-showd.patch 2020-06-30 11:17:11 +08:00
lfl b5cab30fb5 重命名 6042-Fix-a-potential-memory-leak-in-RBU-if-the-rbu_fossil.patch 为 0045-Fix-a-potential-memory-leak-in-RBU-if-the-rbu_fossil.patch 2020-06-30 11:17:01 +08:00
lfl 225eb74dcc 重命名 6041-Fix-another-segfault-that-could-occur-in-fts5-with-a.patch 为 0044-Fix-another-segfault-that-could-occur-in-fts5-with-a.patch 2020-06-30 11:16:47 +08:00
lfl 792bda3e5d 重命名 6040-Fix-another-buffer-overrun-that-could-occur-when-que.patch 为 0043-Fix-another-buffer-overrun-that-could-occur-when-que.patch 2020-06-30 11:16:35 +08:00
lfl 08b565203c 重命名 6039-Fix-another-buffer-overread-in-fts5-that-may-occur-w.patch 为 0042-Fix-another-buffer-overread-in-fts5-that-may-occur-w.patch 2020-06-30 11:16:21 +08:00
lfl 2a93fbb21a 重命名 6038-Fix-a-buffer-overrun-triggered-by-a-merge-operation-.patch 为 0041-Fix-a-buffer-overrun-triggered-by-a-merge-operation-.patch 2020-06-30 11:16:08 +08:00
lfl 4006bb682f 重命名 6037-Fix-a-buffer-overread-in-fts3-that-could-occur-when-.patch 为 0040-Fix-a-buffer-overread-in-fts3-that-could-occur-when-.patch 2020-06-30 11:15:57 +08:00
lfl 652f547f01 重命名 6036-Fix-a-segfault-that-could-follow-an-OOM-when-queryin.patch 为 0039-Fix-a-segfault-that-could-follow-an-OOM-when-queryin.patch 2020-06-30 11:15:44 +08:00
lfl 413e0d5513 重命名 6035-Fix-a-potential-problem-with-INSERT-INTO-.-SELECT-FR.patch 为 0038-Fix-a-potential-problem-with-INSERT-INTO-.-SELECT-FR.patch 2020-06-30 11:15:32 +08:00
lfl 0f8d7798cc 重命名 6034-Fix-an-assert-in-vdbemem.c-that-could-fire-if-the-da.patch 为 0037-Fix-an-assert-in-vdbemem.c-that-could-fire-if-the-da.patch 2020-06-30 11:15:20 +08:00
lfl 5103e7ac1b 重命名 6033-Fix-another-fts5-crash-that-can-occur-if-the-databas.patch 为 0036-Fix-another-fts5-crash-that-can-occur-if-the-databas.patch 2020-06-30 11:15:07 +08:00
lfl 63a1641d18 重命名 6032-Fix-a-buffer-overrun-that-could-occur-in-fts5-if-a-p.patch 为 0035-Fix-a-buffer-overrun-that-could-occur-in-fts5-if-a-p.patch 2020-06-30 11:14:56 +08:00
lfl 2ea491f1ad 重命名 6031-Fix-another-segfault-caused-by-a-corrupt-fts3-databa.patch 为 0034-Fix-another-segfault-caused-by-a-corrupt-fts3-databa.patch 2020-06-30 11:14:44 +08:00
lfl 46c4a5f8e1 重命名 6030-Avoid-integer-overflow-when-computing-the-array-of-a.patch 为 0033-Avoid-integer-overflow-when-computing-the-array-of-a.patch 2020-06-30 11:14:31 +08:00
lfl a60b72dcee 重命名 6029-Fix-another-corruption-related-crash-in-fts5.patch 为 0032-Fix-another-corruption-related-crash-in-fts5.patch 2020-06-30 11:14:21 +08:00
lfl 66e0a9f9ab 重命名 6028-Fix-a-buffer-overwrite-that-could-occur-when-running.patch 为 0031-Fix-a-buffer-overwrite-that-could-occur-when-running.patch 2020-06-30 11:14:07 +08:00
lfl 89bb662185 重命名 6027-Fix-a-memory-leak-that-could-occur-in-fts3-when-hand.patch 为 0030-Fix-a-memory-leak-that-could-occur-in-fts3-when-hand.patch 2020-06-30 11:13:58 +08:00
lfl 7afff9642a 重命名 6026-Handle-SQL-NULL-values-without-crashing-in-the-fts5-.patch 为 0029-Handle-SQL-NULL-values-without-crashing-in-the-fts5-.patch 2020-06-30 11:13:45 +08:00
lfl 0554359353 重命名 6025-Fix-a-harmless-memory-leak-in-the-Lemon-parser-gener.patch 为 0028-Fix-a-harmless-memory-leak-in-the-Lemon-parser-gener.patch 2020-06-30 11:13:34 +08:00
lfl 2b5ada67a2 重命名 6024-Fix-a-problem-causing-a-crash-if-an-fts5vocab-table-.patch 为 0027-Fix-a-problem-causing-a-crash-if-an-fts5vocab-table-.patch 2020-06-30 11:13:21 +08:00
lfl b35e4e0c54 重命名 6023-Prevent-unsigned-32-bit-integer-overflow-from-leadin.patch 为 0026-Prevent-unsigned-32-bit-integer-overflow-from-leadin.patch 2020-06-30 11:13:11 +08:00
lfl 3eff60e85b 重命名 6022-Fix-a-segfault-in-fts3-prompted-by-a-corrupted-datab.patch 为 0025-Fix-a-segfault-in-fts3-prompted-by-a-corrupted-datab.patch 2020-06-30 11:12:59 +08:00
lfl 473daf27c6 重命名 6021-Fix-an-out-of-bounds-read-in-SQL-function-fts5_decod.patch 为 0024-Fix-an-out-of-bounds-read-in-SQL-function-fts5_decod.patch 2020-06-30 11:12:50 +08:00
lfl 7832687b71 重命名 6020-Fix-a-possible-memory-leak-when-trying-to-UPDATE-a-c.patch 为 0023-Fix-a-possible-memory-leak-when-trying-to-UPDATE-a-c.patch 2020-06-30 11:12:40 +08:00
lfl 9430f7cf88 重命名 6019-Fix-another-potential-buffer-overread-in-fts5.patch 为 0022-Fix-another-potential-buffer-overread-in-fts5.patch 2020-06-30 11:12:26 +08:00
lfl a819b3de95 重命名 6018-Fix-another-case-in-fts5-where-a-corrupt-database-co.patch 为 0021-Fix-another-case-in-fts5-where-a-corrupt-database-co.patch 2020-06-30 11:12:14 +08:00
lfl 3d5464b54d 重命名 6017-Fix-a-buffer-overwrite-in-fts5-triggered-by-a-corrup.patch 为 0020-Fix-a-buffer-overwrite-in-fts5-triggered-by-a-corrup.patch 2020-06-30 11:12:03 +08:00
lfl d2a61aa711 重命名 6016-Fix-another-problem-with-corrupt-database-handling-i.patch 为 0019-Fix-another-problem-with-corrupt-database-handling-i.patch 2020-06-30 11:11:48 +08:00
lfl 5b5d5b1659 重命名 6015-Fix-a-segfault-caused-by-using-the-RAISE-function-in.patch 为 0018-Fix-a-segfault-caused-by-using-the-RAISE-function-in.patch 2020-06-30 11:11:38 +08:00
lfl 7ee0070701 重命名 6014-Fix-possible-integer-overflow-while-running-PRAGMA-i.patch 为 0017-Fix-possible-integer-overflow-while-running-PRAGMA-i.patch 2020-06-30 11:11:25 +08:00
lfl 71f22b755f 重命名 6013-Fix-a-parser-bug-in-the-use-of-parentheses-around-ta.patch 为 0016-Fix-a-parser-bug-in-the-use-of-parentheses-around-ta.patch 2020-06-30 11:11:16 +08:00
lfl 1824ba27bc 重命名 6012-Fix-a-failing-assert-in-sqlite3ResetAllSchemasOfConn.patch 为 0015-Fix-a-failing-assert-in-sqlite3ResetAllSchemasOfConn.patch 2020-06-30 11:11:06 +08:00
lfl 711bbde7d6 重命名 6011-Fix-minor-memory-leak-in-the-dbstat-extension-that-c.patch 为 0014-Fix-minor-memory-leak-in-the-dbstat-extension-that-c.patch 2020-06-30 11:10:56 +08:00
lfl b992f29a9a 重命名 6010-Take-steps-to-avoid-a-potential-integer-overflow-in-.patch 为 0013-Take-steps-to-avoid-a-potential-integer-overflow-in-.patch 2020-06-30 11:10:45 +08:00
lfl c0f54fe29c 重命名 6009-In-the-CLI-fix-a-file-descriptor-leak-following-OOM-.patch 为 0012-In-the-CLI-fix-a-file-descriptor-leak-following-OOM-.patch 2020-06-30 11:10:36 +08:00
lfl 2164e96e5f 重命名 6008-Fix-a-potential-crash-that-can-occur-while-reading-a.patch 为 0011-Fix-a-potential-crash-that-can-occur-while-reading-a.patch 2020-06-30 11:10:26 +08:00
lfl 3b33a01f77 重命名 6007-Fix-a-problem-causing-ENABLE_CURSOR_HINTS-builds-to-.patch 为 0010-Fix-a-problem-causing-ENABLE_CURSOR_HINTS-builds-to-.patch 2020-06-30 11:10:16 +08:00
lfl acd3c50c05 重命名 6006-Fix-typo-in-the-Win32-specific-code-for-the-fileio-e.patch 为 0009-Fix-typo-in-the-Win32-specific-code-for-the-fileio-e.patch 2020-06-30 11:10:05 +08:00
lfl dbff5d10d5 重命名 6005-Quick-patch-to-the-Lemon-parser-template-to-avoid-an.patch 为 0008-Quick-patch-to-the-Lemon-parser-template-to-avoid-an.patch 2020-06-30 11:09:52 +08:00
lfl 0d8d10ac3a 重命名 6004-Fix-a-minor-problem-in-the-code-for-determining-whet.patch 为 0007-Fix-a-minor-problem-in-the-code-for-determining-whet.patch 2020-06-30 11:09:40 +08:00
lfl 08a95f0783 重命名 6003-Fix-typo-in-the-normalize-extension.patch 为 0006-Fix-typo-in-the-normalize-extension.patch 2020-06-30 11:09:31 +08:00
lfl eb2261ef91 重命名 6002-Fix-a-typo-in-the-amalgamation-autoconf-file.patch 为 0005-Fix-a-typo-in-the-amalgamation-autoconf-file.patch 2020-06-30 11:09:21 +08:00
lfl 12eadfb580 重命名 6001-Change-a-comma-into-a-logically-equivalent-but-seman.patch 为 0004-Change-a-comma-into-a-logically-equivalent-but-seman.patch 2020-06-30 11:09:10 +08:00
lfl b6d95a9924 重命名 6000-Fix-the-sqlite3BeginTrans-calls-within-the-snapshot-.patch 为 0003-Fix-the-sqlite3BeginTrans-calls-within-the-snapshot-.patch 2020-06-30 11:08:53 +08:00
lfl fef5deb7a0 update sqlite.spec. 2020-06-30 11:07:44 +08:00
openeuler-ci-bot 014003e808 !19 fix CVE-2020-13434 CVE-2020-13435 CVE-2020-13630 CVE-2020-13632
Merge pull request !19 from Markeryang/master
2020-06-23 22:37:24 +08:00
xinghe_1 8ea2df76f6 1 2020-06-23 16:33:32 +08:00
11 changed files with 244 additions and 68 deletions
@@ -1,19 +1,21 @@
diff -up sqlite-src-3120200/configure.ac.malloc_usable_size sqlite-src-3120200/configure.ac
--- sqlite-src-3120200/configure.ac.malloc_usable_size 2016-04-25 09:46:48.134690570 +0200
+++ sqlite-src-3120200/configure.ac 2016-04-25 09:48:41.622637181 +0200
@@ -108,7 +108,7 @@ AC_CHECK_HEADERS([sys/types.h stdlib.h s
#########
# Figure out whether or not we have these functions
#
-AC_CHECK_FUNCS([fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64])
+AC_CHECK_FUNCS([fdatasync gmtime_r isnan localtime_r localtime_s strchrnul usleep utime pread pread64 pwrite pwrite64])
#########
# By default, we use the amalgamation (this may be changed below...)
diff -up sqlite-src-3120200/configure.malloc_usable_size sqlite-src-3120200/configure
--- sqlite-src-3120200/configure.malloc_usable_size 2016-04-25 09:47:12.594679063 +0200
+++ sqlite-src-3120200/configure 2016-04-25 09:49:28.684615042 +0200
@@ -10275,7 +10275,7 @@ done
From 6a7c9be9502ea2023c4b5cf39a0d5a5a55b320f7 Mon Sep 17 00:00:00 2001
From: Lixiaokeng <lixiaokeng@huawei.com>
Date: Wed, 17 Jul 2024 10:31:56 +0800
Subject: [PATCH] sqlite no malloc_usable_size
Reference:https://gitee.com/src-openeuler/sqlite/blob/openEuler-22.03-LTS-SP3/0001-sqlite-no-malloc-usable-size.patch
Conflict:NA
---
configure | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 29ca76b..d67183a 100755
--- a/configure
+++ b/configure
@@ -10292,7 +10292,7 @@ done
#########
# Figure out whether or not we have these functions
#
@@ -22,3 +24,18 @@ diff -up sqlite-src-3120200/configure.malloc_usable_size sqlite-src-3120200/conf
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/configure.ac b/configure.ac
index 53be0a6..6f9b1e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,7 @@ AC_CHECK_HEADERS([sys/types.h stdlib.h stdint.h inttypes.h malloc.h])
#########
# Figure out whether or not we have these functions
#
-AC_CHECK_FUNCS([fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64])
+AC_CHECK_FUNCS([fdatasync gmtime_r isnan localtime_r localtime_s strchrnul usleep utime pread pread64 pwrite pwrite64])
#########
# By default, we use the amalgamation (this may be changed below...)
--
2.33.0
@@ -3,6 +3,9 @@ From: eulerstorage <eulerstoragemt@huawei.com>
Date: Sat, 11 Jan 2020 11:33:54 +0800
Subject: [PATCH] remove fail testcase in no free fd situation
Reference:https://gitee.com/src-openeuler/sqlite/blob/openEuler-22.03-LTS-SP3/0002-remove-fail-testcase-in-no-free-fd-situation.patch
Conflict:NA
Remove testcase 1.1.1, 1.1.2 and 1.1.3, since it can not success in
some situation if there is no enough fd resource.
---
@@ -63,4 +66,3 @@ index a51301c..d46218f 100644
do_test 1.2.1 {
--
1.8.3.1
@@ -0,0 +1,26 @@
From 26ea25aacc1e70f4d142d8f041da2065509c0b51 Mon Sep 17 00:00:00 2001
From: zwtmichael <zhuwentao5@huawei.com>
Date: Tue, 30 Aug 2022 17:02:04 +0800
Subject: [PATCH] fix memory problem in the rtree test suite
Reference:https://gitee.com/src-openeuler/sqlite/blob/openEuler-22.03-LTS-SP3/0004-fix-memory-problem-in-the-rtree-test-suite.patch
Conflict: BoxQueryCtx change to BoxGeomCtx
---
ext/rtree/test_rtreedoc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/rtree/test_rtreedoc.c b/ext/rtree/test_rtreedoc.c
index cdbcb2e..59a7942 100644
--- a/ext/rtree/test_rtreedoc.c
+++ b/ext/rtree/test_rtreedoc.c
@@ -188,7 +188,7 @@ static int SQLITE_TCLAPI register_box_geom(
}
if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR;
- pCtx = (BoxGeomCtx*)ckalloc(sizeof(BoxGeomCtx*));
+ pCtx = (BoxGeomCtx*)ckalloc(sizeof(BoxGeomCtx));
pCtx->interp = interp;
pCtx->pScript = Tcl_DuplicateObj(objv[2]);
Tcl_IncrRefCount(pCtx->pScript);
--
2.33.0
+34
View File
@@ -0,0 +1,34 @@
From c5c8e025ff6cf0f7400b17aec73014e9cdc00935 Mon Sep 17 00:00:00 2001
From: zwtmichael <zhuwentao5@huawei.com>
Date: Mon, 7 Aug 2023 15:10:32 +0800
Subject: [PATCH] fix segmentation violation
Reference:https://gitee.com/src-openeuler/sqlite/blob/openEuler-22.03-LTS-SP3/0007-CVE-2023-36191.patch
Conflict:context adaptation
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
---
src/shell.c.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/shell.c.in b/src/shell.c.in
index 72e4498..355b4bb 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -12219,8 +12219,12 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
}else if( cli_strcmp(z,"-bail")==0 ){
bail_on_error = 1;
}else if( cli_strcmp(z,"-nonce")==0 ){
- free(data.zNonce);
- data.zNonce = strdup(argv[++i]);
+ if( data.zNonce ) free(data.zNonce);
+ if( i + 1 < argc ) data.zNonce = strdup(argv[++i]);
+ else{
+ data.zNonce = 0;
+ break;
+ }
}else if( cli_strcmp(z,"-unsafe-testing")==0 ){
ShellSetFlag(&data,SHFLG_TestingMode);
}else if( cli_strcmp(z,"-safe")==0 ){
--
2.33.0
+46
View File
@@ -0,0 +1,46 @@
From 310e27eec4eb0e6c5cbc7bad6d3c0ad71619cb44 Mon Sep 17 00:00:00 2001
From: dan <Dan Kennedy>
Date: Thu, 7 Sep 2023 13:53:09 +0000
Subject: [PATCH] Fix a buffer overread in the sessions extension that could
occur when processing a corrupt changeset.
Reference:https://sqlite.org/src/info/0e4e7a05c4204b47
Conflict:NA
---
ext/session/sqlite3session.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/ext/session/sqlite3session.c b/ext/session/sqlite3session.c
index a892804..72ad427 100644
--- a/ext/session/sqlite3session.c
+++ b/ext/session/sqlite3session.c
@@ -3050,15 +3050,19 @@ static int sessionReadRecord(
}
}
if( eType==SQLITE_INTEGER || eType==SQLITE_FLOAT ){
- sqlite3_int64 v = sessionGetI64(aVal);
- if( eType==SQLITE_INTEGER ){
- sqlite3VdbeMemSetInt64(apOut[i], v);
+ if( (pIn->nData-pIn->iNext)<8 ){
+ rc = SQLITE_CORRUPT_BKPT;
}else{
- double d;
- memcpy(&d, &v, 8);
- sqlite3VdbeMemSetDouble(apOut[i], d);
+ sqlite3_int64 v = sessionGetI64(aVal);
+ if( eType==SQLITE_INTEGER ){
+ sqlite3VdbeMemSetInt64(apOut[i], v);
+ }else{
+ double d;
+ memcpy(&d, &v, 8);
+ sqlite3VdbeMemSetDouble(apOut[i], d);
+ }
+ pIn->iNext += 8;
}
- pIn->iNext += 8;
}
}
}
--
2.33.0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+98 -51
View File
@@ -1,28 +1,29 @@
%bcond_without check
%global extver 3320300
%global extver 3420000
%global tcl_version 8.6
%global tcl_sitearch %{_libdir}/tcl%{tcl_version}
%global year 2020
Name: sqlite
Version: 3.32.3
Release: 2
Version: 3.42.0
Release: 3
Summary: Embeded SQL database
License: Public Domain
URL: http://www.sqlite.org/
Source0: https://www.sqlite.org/%{year}/sqlite-src-%{extver}.zip
Source1: http://www.sqlite.org/%{year}/sqlite-doc-%{extver}.zip
Source2: https://www.sqlite.org/%{year}/sqlite-autoconf-%{extver}.tar.gz
Source0: https://www.sqlite.org/2023/sqlite-src-%{extver}.zip
Source1: http://www.sqlite.org/2023/sqlite-doc-%{extver}.zip
Source2: https://www.sqlite.org/2023/sqlite-autoconf-%{extver}.tar.gz
Patch1: 0001-sqlite-no-malloc-usable-size.patch
Patch2: 0002-remove-fail-testcase-in-no-free-fd-situation.patch
Patch6000: backport-0001-sqlite-no-malloc-usable-size.patch
Patch6001: backport-0002-remove-fail-testcase-in-no-free-fd-situation.patch
Patch6002: backport-0003-fix-memory-problem-in-the-rtree-test-suite.patch
Patch6003: backport-0004-CVE-2023-36191.patch
Patch6004: backport-CVE-2023-7104.patch
BuildRequires: gcc autoconf tcl tcl-devel
BuildRequires: ncurses-devel readline-devel glibc-devel
Provides: %{name}-libs
Obsoletes: %{name}-libs
Provides: lemon
@@ -60,15 +61,17 @@ This contains man files and HTML files for the using of sqlite.
%prep
#autosetup will fail because of 2 zip files
%setup -q -a1 -n %{name}-src-%{extver}
%patch1 -p1
%patch2 -p1
%patch6000 -p1
%patch6001 -p1
%patch6002 -p1
%patch6003 -p1
%patch6004 -p1
rm -f %{name}-doc-%{extver}/sqlite.css~ || :
autoconf
%build
autoconf
export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 \
-DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 \
@@ -104,13 +107,15 @@ chmod 755 %{buildroot}/%{tcl_sitearch}/sqlite3/*.so
%check
export LD_LIBRARY_PATH=`pwd`/.libs
export MALLOC_CHECK_=3
#bypass zipfile.test
rm test/zipfile.test
%ifarch x86_64 %{ix86}
%else
rm test/csv01.test
%endif
%ifarch loongarch64
rm -rf test/thread1.test
rm -rf test/thread2.test
%endif
make test
%endif # with check
@@ -135,47 +140,89 @@ make test
%{_mandir}/man*/*
%changelog
* Thu Sep 2 2020 lihaotian<lihaotian9@huawei.com> - 3.32.3-2
* Mon Nov 11 2024 wangmian <wangmian19@h-partners.com> - 3.42.0-3
- sync the patch from 2203
* Wed Sep 4 2024 wangmian <wangmian19@h-partners.com> - 3.42.0-2
- sync the CVE-2023-7104 from 2203
* Tue Feb 27 2024 Zheng Zhenyu <zheng.zhenyu@outlook.com> - 3.42.0-1
- Bump version to fix CVE-2024-0232
* Wed Jan 3 2024 mazhao <mazhao12@huawei.com> - 3.37.2-7
- fix the CVE-2023-7104
* Mon Aug 7 2023 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-6
- fix the CVE-2023-36191
* Fri Jan 13 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.37.2-5
- remove fail testcase for loongarch
* Wed Dec 14 2022 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-4
- fix the CVE-2022-46908
* Wed Sep 14 2022 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-3
- fix build problem
* Mon Sep 5 2022 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-2
- fix integer overflow on gigabyte string
* Mon Aug 29 2022 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-1
- update to 3.37.2
* Tue Aug 16 2022 liusirui <liusirui@huawei.com> - 3.36.0-3
- fix the CVE-2022-35737.
* Sat Nov 27 2021 wbq_sky <wangbingquan@huawei.com> - 3.36.0-2
- fix the CVE-2021-36690.
* Fri Nov 25 2021 wbq_sky <wangbingquan@huawei.com> - 3.36.0-1
- update to 3.36.0.
* Fri Sep 26 2021 wbq_sky <wangbingquan@huawei.com> - 3.34.0-4
- fix the uninitialized value used in pattern match.
* Fri Sep 3 2021 wbq_sky <wangbingquan@huawei.com> - 3.34.0-3
- fix the null reference in the tigger statement.
* Fri Sep 3 2021 wbq_sky <wangbingquan@huawei.com> - 3.34.0-2
- fix the infinite loop problem in the trim function while the pattern is well formed.
* Thu Jan 14 2021 yanglongkang <yanglongkang@huawei.com> - 3.34.0-1
- update package to 3.34.0
* Thu Sep 3 2020 lihaotian<lihaotian9@huawei.com> - 3.32.3-3
- update source0 url
* Tue Aug 25 2020 yanglongkang <yanglongkang@huawei.com> - 3.32.3-1
* Tue Jul 21 2020 jixinjie <jixinjie@huawei.com> - 3.32.3-2
- update yaml file
* Tue Jul 21 2020 jixinjie <jixinjie@huawei.com> - 3.32.3-1
- update package to 3.32.3
* Tue Aug 4 2020 yanglongkang <yanglongkang@huawei.com> - 3.31.1-2
- Type:cves
- ID:CVE-2020-13871
- SUG: NA
- DESC: fix cve
* Mon Aug 3 2020 yanglongkang <yanglongkang@huawei.com> - 3.31.1-1
- Type:cves
- ID:CVE-2020-15358 CVE-2020-13631
- SUG: NA
- DESC: fix cve
* Fri Apr 17 2020 luoshijie <luoshijie1@huawei.com> - 3.31.1-0
* Tue Jun 30 2020 volcanodragon <linfeilong@huawei.com> - 3.24.0-12
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:update sqlite to 3.31.1.
* Tue Mar 10 2020 guiyao <guiyao@huawei.com> - 3.24.0-11
- Type:cves
- ID:CVE-2020-9327
- SUG: NA
- DESC: fix cve
* Fri Feb 28 2020 sunshihao <sunshihao@huawei.com> - 3.24.0-10
- Type:enhancement
- ID:
- SUG: NA
- DESC: remove suffix information
* Wed Feb 26 2020 guiyao <guiyao@huawei.com> - 3.24.0-9
- Type:cves
- ID:CVE-2018-20505
- SUG:NA
- DESC:fix cves
- DESC:rename patches
* Tue Jun 23 2020 yanglongkang <yanglongkang@huawei.com> - 3.24.0-11
- Type:cves
- ID:CVE-2020-13434 CVE-2020-13435 CVE-2020-13630 CVE-2020-13632
- SUG:NA
- DESC:fix CVE-2020-13434 CVE-2020-13435 CVE-2020-13630 CVE-2020-13632
* Sun Apr 19 2020 ethan848 <mingfangsen@huawei.com>
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:CVE-2020-11655 fixed
* Tue Mar 10 2020 steven <steven_ygui@163.com> - 3.24.0-9
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:CVE-2018-20505, CVE-2020-9327 fixed
* Wed Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.24.0-8
- Type:enhancement
+4
View File
@@ -0,0 +1,4 @@
version_control: fossil
src_repo: https://www.sqlite.org/src
tag_prefix: "version-"
seperator: "."