maxminddb 2.6.0__tar.gz → 2.6.2__tar.gz
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.
- {maxminddb-2.6.0 → maxminddb-2.6.2}/HISTORY.rst +17 -0
- {maxminddb-2.6.0/maxminddb.egg-info → maxminddb-2.6.2}/PKG-INFO +1 -1
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/libmaxminddb/src/maxminddb.c +4 -1
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/__init__.py +1 -1
- {maxminddb-2.6.0 → maxminddb-2.6.2/maxminddb.egg-info}/PKG-INFO +1 -1
- {maxminddb-2.6.0 → maxminddb-2.6.2}/pyproject.toml +1 -1
- {maxminddb-2.6.0 → maxminddb-2.6.2}/LICENSE +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/MANIFEST.in +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/README.rst +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/docs/Makefile +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/docs/conf.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/docs/index.rst +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/examples/benchmark.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/libmaxminddb/include/maxminddb.h +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/libmaxminddb/src/data-pool.c +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/libmaxminddb/src/data-pool.h +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/libmaxminddb/src/maxminddb-compat-util.h +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/maxminddb.c +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/extension/maxminddb_config.h +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/const.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/decoder.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/errors.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/extension.pyi +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/file.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/py.typed +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/reader.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb/types.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb.egg-info/SOURCES.txt +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb.egg-info/dependency_links.txt +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/maxminddb.egg-info/top_level.txt +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/setup.cfg +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/setup.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/libmaxminddb/libmaxminddb-offset-integer-overflow.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/cyclic-data-structure.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-bytes-length.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-data-record-offset.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-map-key-length.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-string-length.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/metadata-is-an-uint128.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/unexpected-bytes.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-City-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Connection-Type-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Country-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-DensityIncome-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Domain-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Enterprise-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-ISP-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Static-IP-Score-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-User-Count-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoLite2-ASN-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoLite2-City-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoLite2-Country-Test.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-string-value-entries.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-decoder.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv4-24.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv4-28.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv4-32.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv6-24.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv6-28.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-ipv6-32.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-mixed-24.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-mixed-28.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-mixed-32.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-nested.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/maps-with-pointers.raw +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/decoder_test.py +0 -0
- {maxminddb-2.6.0 → maxminddb-2.6.2}/tests/reader_test.py +0 -0
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
History
|
|
4
4
|
-------
|
|
5
5
|
|
|
6
|
+
2.6.2 (2024-06-10)
|
|
7
|
+
++++++++++++++++++
|
|
8
|
+
|
|
9
|
+
* The vendored ``libmaxminddb`` has been updated to 1.10.0. This fixes a
|
|
10
|
+
bug that would result in incorrect results on databases that had search
|
|
11
|
+
trees greater than 4 GB.
|
|
12
|
+
|
|
13
|
+
2.6.1 (2024-04-12)
|
|
14
|
+
++++++++++++++++++
|
|
15
|
+
|
|
16
|
+
* This release includes no source code changes. The only changes are to
|
|
17
|
+
the release workflow.
|
|
18
|
+
* Binary wheels are now built on Linux for aarch64. Pull request by Kevin
|
|
19
|
+
Park. GitHub #160.
|
|
20
|
+
* Binary wheels are now built on macOS for Apple silicon. Requested by
|
|
21
|
+
Kevin Park. GitHub #152.
|
|
22
|
+
|
|
6
23
|
2.6.0 (2024-03-19)
|
|
7
24
|
++++++++++++++++++
|
|
8
25
|
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
#endif
|
|
24
24
|
#include <windows.h>
|
|
25
25
|
#include <ws2ipdef.h>
|
|
26
|
+
#ifndef SSIZE_MAX
|
|
26
27
|
#define SSIZE_MAX INTPTR_MAX
|
|
28
|
+
#endif
|
|
27
29
|
typedef ADDRESS_FAMILY sa_family_t;
|
|
28
30
|
#else
|
|
29
31
|
#include <arpa/inet.h>
|
|
@@ -945,7 +947,7 @@ static int find_address_in_search_tree(const MMDB_s *const mmdb,
|
|
|
945
947
|
return MMDB_UNKNOWN_DATABASE_FORMAT_ERROR;
|
|
946
948
|
}
|
|
947
949
|
|
|
948
|
-
|
|
950
|
+
uint64_t value = 0;
|
|
949
951
|
uint16_t current_bit = 0;
|
|
950
952
|
if (mmdb->metadata.ip_version == 6 && address_family == AF_INET) {
|
|
951
953
|
value = mmdb->ipv4_start_node.node_value;
|
|
@@ -959,6 +961,7 @@ static int find_address_in_search_tree(const MMDB_s *const mmdb,
|
|
|
959
961
|
uint8_t bit =
|
|
960
962
|
1U & (address[current_bit >> 3] >> (7 - (current_bit % 8)));
|
|
961
963
|
|
|
964
|
+
// Note that value*record_info.record_length can be larger than 2**32
|
|
962
965
|
record_pointer = &search_tree[value * record_info.record_length];
|
|
963
966
|
if (record_pointer + record_info.record_length > mmdb->data_section) {
|
|
964
967
|
return MMDB_CORRUPT_SEARCH_TREE_ERROR;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/cyclic-data-structure.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-bytes-length.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-map-key-length.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/invalid-string-length.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/metadata-is-an-uint128.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-golang/unexpected-bytes.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-string-value-entries.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb
RENAMED
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maxminddb-2.6.0 → maxminddb-2.6.2}/tests/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|