sqlite3 2.9.4-x86_64-darwin → 2.9.5-x86_64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/dependencies.yml +8 -8
- data/ext/sqlite3/database.c +1 -5
- data/ext/sqlite3/extconf.rb +3 -3
- data/lib/sqlite3/3.2/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.3/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.4/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/4.0/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/database.rb +5 -1
- data/lib/sqlite3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62489277966318962a9b48cc93fbefecdbfdbcc0a1fe2051bd063a66d690b0fe
|
|
4
|
+
data.tar.gz: b9b81e637110ed34321ca53f1864e7e87223733be80966dc6bde52ff5f82c305
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7c4cefaef4864ece5c700dc72d3f095f5741adf633e4fcaa0f41db649f6b56b892012cd2e9e991cfdb0342dc5f8f2fbef01bad4c30689db711f1cffe8d56e2e
|
|
7
|
+
data.tar.gz: 48d58189d0a34e696ad7d3f9eaeaf26373eba131b8f615f180926f3199fc04618e04aeec39dac47784faf8f3ee14db4d19b15b721ca641d298a10acafa94a15b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# sqlite3-ruby Changelog
|
|
2
2
|
|
|
3
|
+
## 2.9.5 / 2026-06-07
|
|
4
|
+
|
|
5
|
+
### Dependencies
|
|
6
|
+
|
|
7
|
+
- Vendored sqlite is updated to [v3.53.2](https://www.sqlite.org/releaselog/3_53_3.html) (from v3.53.1). #709 @flavorjones
|
|
8
|
+
|
|
9
|
+
### Security / Stability
|
|
10
|
+
|
|
11
|
+
- Fix use-after-free issue with custom functions, when the same function name is used with multiple arities. See https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89 for more information. #710 @flavorjones
|
|
12
|
+
- Fix use-after-free issue with aggregate functions, if a statement is used after a soft database close. See https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3 for more information. #711 @flavorjones
|
|
13
|
+
|
|
14
|
+
|
|
3
15
|
## 2.9.4 / 2026-05-05
|
|
4
16
|
|
|
5
17
|
- Vendored sqlite is updated to [v3.53.1](https://www.sqlite.org/releaselog/3_53_1.html) (from v3.53.0). #704 @flavorjones
|
data/dependencies.yml
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
sqlite3:
|
|
2
2
|
# checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html:
|
|
3
|
-
#
|
|
3
|
+
# 025328da165109f48abccc6e7478508060804412bed2bd81d47e98ba1b72983b
|
|
4
4
|
#
|
|
5
|
-
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-
|
|
6
|
-
#
|
|
5
|
+
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-3530200.tar.gz
|
|
6
|
+
# 025328da165109f48abccc6e7478508060804412bed2bd81d47e98ba1b72983b ports/archives/sqlite-autoconf-3530200.tar.gz
|
|
7
7
|
#
|
|
8
|
-
# $ sha256sum ports/archives/sqlite-autoconf-
|
|
9
|
-
#
|
|
10
|
-
version: "3.53.
|
|
8
|
+
# $ sha256sum ports/archives/sqlite-autoconf-3530200.tar.gz
|
|
9
|
+
# 588ad51949419a56ebe81fe56193d510c559eb94c9a57748387860b5d3069316 ports/archives/sqlite-autoconf-3530200.tar.gz
|
|
10
|
+
version: "3.53.2"
|
|
11
11
|
files:
|
|
12
|
-
- url: "https://sqlite.org/2026/sqlite-autoconf-
|
|
13
|
-
sha256: "
|
|
12
|
+
- url: "https://sqlite.org/2026/sqlite-autoconf-3530200.tar.gz"
|
|
13
|
+
sha256: "588ad51949419a56ebe81fe56193d510c559eb94c9a57748387860b5d3069316"
|
data/ext/sqlite3/database.c
CHANGED
|
@@ -198,8 +198,6 @@ sqlite3_rb_close(VALUE self)
|
|
|
198
198
|
|
|
199
199
|
close_or_discard_db(ctx);
|
|
200
200
|
|
|
201
|
-
rb_iv_set(self, "-aggregators", Qnil);
|
|
202
|
-
|
|
203
201
|
return self;
|
|
204
202
|
}
|
|
205
203
|
|
|
@@ -212,8 +210,6 @@ sqlite3_rb_discard(VALUE self)
|
|
|
212
210
|
|
|
213
211
|
discard_db(ctx);
|
|
214
212
|
|
|
215
|
-
rb_iv_set(self, "-aggregators", Qnil);
|
|
216
|
-
|
|
217
213
|
return self;
|
|
218
214
|
}
|
|
219
215
|
|
|
@@ -528,7 +524,7 @@ define_function_with_flags(VALUE self, VALUE name, VALUE flags)
|
|
|
528
524
|
|
|
529
525
|
CHECK(ctx->db, status);
|
|
530
526
|
|
|
531
|
-
|
|
527
|
+
rb_ary_push(rb_iv_get(self, "@functions"), block);
|
|
532
528
|
|
|
533
529
|
return self;
|
|
534
530
|
}
|
data/ext/sqlite3/extconf.rb
CHANGED
|
@@ -105,10 +105,10 @@ module Sqlite3
|
|
|
105
105
|
def configure_extension
|
|
106
106
|
append_cflags("-fvisibility=hidden") # see https://github.com/rake-compiler/rake-compiler-dock/issues/87
|
|
107
107
|
|
|
108
|
-
if find_header("sqlite3.h")
|
|
109
|
-
# noop
|
|
110
|
-
elsif sqlcipher? && find_header("sqlcipher/sqlite3.h")
|
|
108
|
+
if sqlcipher? && find_header("sqlcipher/sqlite3.h")
|
|
111
109
|
append_cppflags("-DUSING_SQLCIPHER_INC_SUBDIR")
|
|
110
|
+
elsif find_header("sqlite3.h")
|
|
111
|
+
# noop
|
|
112
112
|
else
|
|
113
113
|
abort_could_not_find("sqlite3.h")
|
|
114
114
|
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/sqlite3/database.rb
CHANGED
|
@@ -175,7 +175,7 @@ module SQLite3
|
|
|
175
175
|
@authorizer = nil
|
|
176
176
|
@progress_handler = nil
|
|
177
177
|
@collations = {}
|
|
178
|
-
@functions =
|
|
178
|
+
@functions = []
|
|
179
179
|
@results_as_hash = options[:results_as_hash]
|
|
180
180
|
@readonly = mode & Constants::Open::READONLY != 0
|
|
181
181
|
@default_transaction_mode = options[:default_transaction_mode] || :deferred
|
|
@@ -398,6 +398,8 @@ module SQLite3
|
|
|
398
398
|
# the FunctionProxy#result= method on the +func+ parameter and
|
|
399
399
|
# indicate the return value that way.
|
|
400
400
|
#
|
|
401
|
+
# A reference to the block will be kept for the lifetime of the database object.
|
|
402
|
+
#
|
|
401
403
|
# Example:
|
|
402
404
|
#
|
|
403
405
|
# db.create_function( "maim", 1 ) do |func, value|
|
|
@@ -437,6 +439,8 @@ module SQLite3
|
|
|
437
439
|
# function invocation. It should invoke FunctionProxy#result= to
|
|
438
440
|
# store the result of the function.
|
|
439
441
|
#
|
|
442
|
+
# A reference to the block will be kept for the lifetime of the database object.
|
|
443
|
+
#
|
|
440
444
|
# Example:
|
|
441
445
|
#
|
|
442
446
|
# db.create_aggregate( "lengths", 1 ) do
|
data/lib/sqlite3/version.rb
CHANGED