[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 765edc204d4: ; Support SQLite3 extensions on macOS
From: |
Eli Zaretskii |
Subject: |
emacs-29 765edc204d4: ; Support SQLite3 extensions on macOS |
Date: |
Tue, 23 May 2023 10:53:22 -0400 (EDT) |
branch: emacs-29
commit 765edc204d45c0eb6d31e92c661355c1bd7315a9
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Support SQLite3 extensions on macOS
* src/sqlite.c (Fsqlite_load_extension): Support *.dylib
extensions. (Bug#63653)
---
src/sqlite.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/sqlite.c b/src/sqlite.c
index 852e3746ef4..fd528f2b0d5 100644
--- a/src/sqlite.c
+++ b/src/sqlite.c
@@ -730,10 +730,12 @@ Only modules on Emacs' list of allowed modules can be
loaded. */)
bool do_allow = false;
for (const char **allow = allowlist; *allow; allow++)
{
- if (strlen (*allow) < strlen (name)
- && !strncmp (*allow, name, strlen (*allow))
- && (!strcmp (name + strlen (*allow), ".so")
- || !strcasecmp (name + strlen (*allow), ".dll")))
+ ptrdiff_t allow_len = strlen (*allow);
+ if (allow_len < strlen (name)
+ && !strncmp (*allow, name, allow_len)
+ && (!strcmp (name + allow_len, ".so")
+ ||!strcmp (name + allow_len, ".dylib")
+ || !strcasecmp (name + allow_len, ".dll")))
{
do_allow = true;
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 765edc204d4: ; Support SQLite3 extensions on macOS,
Eli Zaretskii <=