maxmind-db-rust 0.6.0 → 0.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4da26d1a897424541b516fa63b4b5bc7a29c22f22b287f1da695464fe3f65dfb
4
- data.tar.gz: f6bb57652b26da3cd5639f853be1ccd8cd6eac8c5d8f928d2220a41b76961ec2
3
+ metadata.gz: 03b4d3ca4cd964a2d2674d7b634bb2916fb1883ab2857e3ac771f804798f3f55
4
+ data.tar.gz: 4afc9afc19565f31771e7fb984b39aee58ff5eef20aaea1b89d6a71cb36e3e61
5
5
  SHA512:
6
- metadata.gz: d8cdcdff702b4f7fbe6c01900f9d623038994ce1fbd7c4ce202689ee08432ff4e58c6cc269459e3fd2a9680bdee22f88ee10981a66d92679780bf2cce631246b
7
- data.tar.gz: f5e1f10ea7ba02421a16d7eec91ff3435eaad367c9fd97d345105a769e7aec00fcc991e9e6ac85c682d5ec4f6ddfabf10cdc2cee55be1d29c05aa3ecb7700ead
6
+ metadata.gz: c046281c3dea4f8e1e737048062ebc4fcf34a84ad557bb123e7bbe848b66bff008e968b1b503ea98ed64924abf854c2c2c34122fa6b7671a1f6ca29b7d3b806d
7
+ data.tar.gz: fe80902e9ce37d5ee0c36fbf996342e4f5c50870e7ce900e6dd0bf6a925c8676c8a1b3ba6ef99e5a8a1a7499993f3f2b5195861ad816b3ee705ac3187a4ccf5f
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.7.0] - 2026-09-12
9
+
10
+ ### Changed
11
+
12
+ - Upgraded the `maxminddb` crate from 0.30.0 to 0.32.0, adding resource
13
+ limits for decoding and verification of malformed databases, fixing
14
+ overflowing extended data types, and improving record decoding, search-tree
15
+ lookups, and selective path lookups.
16
+ - Databases that exceed the new decoding or verification limits now raise
17
+ `InvalidDatabaseError`, including databases that previously decoded successfully.
18
+ - Updated Rust and Ruby dependencies.
19
+ - Updated the MaxMind-DB test submodule and added coverage for the new resource
20
+ limits and expanded malformed database corpus.
21
+
8
22
  ## [0.6.0] - 2026-07-19
9
23
 
10
24
  ### Added
@@ -215,6 +229,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
215
229
  - MODE_FILE support (use MODE_MMAP instead)
216
230
  - File descriptor support in constructor
217
231
 
232
+ [0.7.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.6.0...v0.7.0
218
233
  [0.6.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.5.0...v0.6.0
219
234
  [0.5.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.4.0...v0.5.0
220
235
  [0.4.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.3.0...v0.4.0
@@ -15,7 +15,7 @@ crate-type = ["cdylib"]
15
15
  arc-swap = "1.9"
16
16
  ipnetwork = "0.21"
17
17
  magnus = "0.8"
18
- maxminddb = "0.30.0"
18
+ maxminddb = "0.32.0"
19
19
  memmap2 = "0.9"
20
20
  rustc-hash = "2.1"
21
21
  serde = "1.0"
@@ -447,6 +447,7 @@ impl Reader {
447
447
  }
448
448
  Err(MaxMindDbError::InvalidDatabase { .. })
449
449
  | Err(MaxMindDbError::Decoding { .. })
450
+ | Err(MaxMindDbError::ResourceLimit { .. })
450
451
  | Err(MaxMindDbError::Io(_)) => {
451
452
  return Err(invalid_database_exception(ERR_BAD_DATA));
452
453
  }
@@ -739,6 +740,7 @@ fn lookup_error(ruby: &magnus::Ruby, err: MaxMindDbError, context: &str) -> Erro
739
740
  match err {
740
741
  MaxMindDbError::InvalidDatabase { .. }
741
742
  | MaxMindDbError::Decoding { .. }
743
+ | MaxMindDbError::ResourceLimit { .. }
742
744
  | MaxMindDbError::Io(_) => invalid_database_exception(ERR_BAD_DATA),
743
745
  other => Error::new(
744
746
  ruby.exception_runtime_error(),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxmind-db-rust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Oschwald