Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/address-sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
schedule:
- cron: '13 15 * * SUN'

permissions: {}

jobs:
build:
name: Address Sanitizer
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
schedule:
- cron: '3 15 * * SUN'

permissions: {}

jobs:
clang-analyzer:
name: Clang Static Analysis
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
schedule:
- cron: '0 18 * * 0'

permissions: {}

jobs:
CodeQL-Build:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
types:
- published

permissions: {}

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-libmaxminddb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
schedule:
- cron: '3 15 * * SUN'

permissions: {}

jobs:
build:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
schedule:
- cron: '3 15 * * SUN'

permissions: {}

jobs:
build:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
name: zizmor latest via PyPI
Expand Down
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ History
++++++++++++++++++

* The vendored ``libmaxminddb`` has been updated to 1.12.2.
* The C extension now checks that the database metadata lookup was
successful.

2.6.3 (2025-01-09)
++++++++++++++++++
Expand Down
9 changes: 8 additions & 1 deletion extension/maxminddb.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,14 @@ static PyObject *Reader_metadata(PyObject *self, PyObject *UNUSED(args)) {
}

MMDB_entry_data_list_s *entry_data_list;
MMDB_get_metadata_as_entry_data_list(mmdb_obj->mmdb, &entry_data_list);
int status =
MMDB_get_metadata_as_entry_data_list(mmdb_obj->mmdb, &entry_data_list);
if (status != MMDB_SUCCESS) {
PyErr_Format(MaxMindDB_error,
"Error decoding metadata. %s",
MMDB_strerror(status));
return NULL;
}
MMDB_entry_data_list_s *original_entry_data_list = entry_data_list;

PyObject *metadata_dict = from_entry_data_list(&entry_data_list);
Expand Down
Loading