From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E445A1582EF for ; Sat, 22 Feb 2025 13:18:21 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CE6E73431C7 for ; Sat, 22 Feb 2025 13:18:21 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id CCCA21102A2; Sat, 22 Feb 2025 13:18:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C13AD1102A2 for ; Sat, 22 Feb 2025 13:18:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7DE523431CB for ; Sat, 22 Feb 2025 13:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DEBED2654 for ; Sat, 22 Feb 2025 13:18:15 +0000 (UTC) From: "Jakov Smolić" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jakov Smolić" Message-ID: <1740230190.75d82143fa29cb7a37550333c548292bda6b4687.jsmolic@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/, dev-db/sqlite/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/sqlite/files/sqlite-3.49.1-jimsh.patch dev-db/sqlite/sqlite-3.49.1.ebuild X-VCS-Directories: dev-db/sqlite/ dev-db/sqlite/files/ X-VCS-Committer: jsmolic X-VCS-Committer-Name: Jakov Smolić X-VCS-Revision: 75d82143fa29cb7a37550333c548292bda6b4687 X-VCS-Branch: master Date: Sat, 22 Feb 2025 13:18:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7185a260-d23d-4210-9ce3-c5dfa1a7d49a X-Archives-Hash: 03eb5573d91d7514fd13d1531ddd4c9c commit: 75d82143fa29cb7a37550333c548292bda6b4687 Author: Jakov Smolić gentoo org> AuthorDate: Sat Feb 22 12:36:21 2025 +0000 Commit: Jakov Smolić gentoo org> CommitDate: Sat Feb 22 13:16:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d82143 dev-db/sqlite: Fix buffer overflow in autosetup jimsh Add a patch similar to https://github.com/msteveb/jimtcl/commit/9b754b8033b9f2a1dc8ba1227df2e5d75185dda7 until this is fixed upstream in autosetup Closes: https://bugs.gentoo.org/949981 Signed-off-by: Jakov Smolić gentoo.org> dev-db/sqlite/files/sqlite-3.49.1-jimsh.patch | 36 +++++++++++++++++++++++++++ dev-db/sqlite/sqlite-3.49.1.ebuild | 2 ++ 2 files changed, 38 insertions(+) diff --git a/dev-db/sqlite/files/sqlite-3.49.1-jimsh.patch b/dev-db/sqlite/files/sqlite-3.49.1-jimsh.patch new file mode 100644 index 000000000000..68203390c793 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.49.1-jimsh.patch @@ -0,0 +1,36 @@ +# https://bugs.gentoo.org/949981 +# https://github.com/msteveb/jimtcl/commit/9b754b8033b9f2a1dc8ba1227df2e5d75185dda7 +--- a/autosetup/jimsh0.c ++++ b/autosetup/jimsh0.c +@@ -2088,9 +2088,13 @@ enum wbuftype { + #define UNIX_SOCKETS 0 + #endif + +-#ifndef MAXPATHLEN +-#define MAXPATHLEN JIM_PATH_LEN +-#endif ++# ifndef MAXPATHLEN ++# ifdef PATH_MAX ++# define MAXPATHLEN PATH_MAX ++# else ++# define MAXPATHLEN JIM_PATH_LEN ++# endif ++# endif + + + +@@ -4173,14 +4177,6 @@ int Jim_regexpInit(Jim_Interp *interp) + #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) + #endif + +-# ifndef MAXPATHLEN +-# ifdef PATH_MAX +-# define MAXPATHLEN PATH_MAX +-# else +-# define MAXPATHLEN JIM_PATH_LEN +-# endif +-# endif +- + #if defined(__MINGW32__) || defined(__MSYS__) || defined(_MSC_VER) + #define ISWINDOWS 1 + diff --git a/dev-db/sqlite/sqlite-3.49.1.ebuild b/dev-db/sqlite/sqlite-3.49.1.ebuild index a0c2249a6802..3deeb24b18ab 100644 --- a/dev-db/sqlite/sqlite-3.49.1.ebuild +++ b/dev-db/sqlite/sqlite-3.49.1.ebuild @@ -53,6 +53,8 @@ PATCHES=( "${FILESDIR}"/${PN}-3.47.2-hwtime.h-Don-t-use-rdtsc-on-i486.patch # https://sqlite.org/forum/forumpost/f93323a743 "${FILESDIR}"/${PN}-3.49.0-icu-tests.patch + # https://bugs.gentoo.org/949981 + "${FILESDIR}"/${PN}-3.49.1-jimsh.patch ) _fossil_fetch() {