Skip to content

Commit 4af41f5

Browse files
committed
Merge tag '1.12.2' into ubuntu-ppa
2 parents c673752 + cba618d commit 4af41f5

File tree

14 files changed

+80
-13
lines changed

14 files changed

+80
-13
lines changed

.github/workflows/clang-addresssanitizer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
submodules: true
22+
persist-credentials: false
2223
- run: sudo apt install clang libipc-run3-perl
2324
- run: ./bootstrap
2425
- run: ./configure

.github/workflows/clang-analyzer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
1315
- run: sudo apt install clang-tools libipc-run3-perl
1416
- run: ./bootstrap
1517
- run: scan-build ./configure

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
# a pull request then we can checkout the head.
2525
fetch-depth: 2
2626
submodules: true
27+
persist-credentials: false
2728

2829
# If this run was triggered by a pull request event, then checkout
2930
# the head of the pull request instead of the merge commit.

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
submodules: true
23+
persist-credentials: false
2324
- run: sudo apt install libipc-run3-perl
2425
if: ${{ matrix.os == 'ubuntu-latest' }}
2526
- run: brew install autoconf automake libtool
@@ -41,6 +42,7 @@ jobs:
4142
- uses: actions/checkout@v4
4243
with:
4344
submodules: true
45+
persist-credentials: false
4446
- run: cmake -DBUILD_TESTING=ON .
4547
- run: cmake --build .
4648
- run: ctest -V . -C Debug

.github/workflows/zizmor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Actions Security Analysis with zizmor
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
zizmor:
11+
name: zizmor latest via PyPI
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
# required for workflows in private repositories
16+
contents: read
17+
actions: read
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
23+
24+
- name: Install the latest version of uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
enable-cache: false
28+
29+
- name: Run zizmor
30+
run: uvx zizmor --format plain .
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.9...3.30)
22

33
project(maxminddb
44
LANGUAGES C
5-
VERSION 1.12.0
5+
VERSION 1.12.2
66
)
77
set(MAXMINDDB_SOVERSION 0.0.7)
88
set(CMAKE_C_STANDARD 99)

Changes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 1.12.2 - 2025-01-10
2+
3+
* `MMDB_get_entry_data_list()` now always sets the passed `entry_data_list`
4+
parameter to either `NULL` or valid memory. This makes it safe for
5+
callers to use `MMDB_free_entry_data_list()` on it even in case of error.
6+
In 1.12.0 `MMDB_get_entry_data_list()` was changed to not set this
7+
parameter to valid memory in additional error cases. That change caused
8+
segfaults for certain libraries that assumed it was safe to free memory
9+
on error. Doing so was never safe, but worked in some cases. This change
10+
makes such calls safe. Reported by Petr Pisar. GitHub
11+
maxmind/MaxMind-DB-Reader-XS#39.
12+
13+
## 1.12.1 - 2025-01-08
14+
15+
* Added missing `cmake_uninstall.cmake.in` to the source distribution. This
16+
was missing from 1.12.0, causing CMake builds to fail. Reported by Marcel
17+
Raad. GitHub #367.
18+
119
## 1.12.0 - 2025-01-07
220

321
* Fixed memory leaks in `MMDB_open()`. These could happen with invalid

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif
1818

1919
EXTRA_DIST = doc Changes.md LICENSE NOTICE README.md \
2020
CMakeLists.txt t/CMakeLists.txt bin/CMakeLists.txt \
21-
include/maxminddb_config.h.cmake.in
21+
cmake_uninstall.cmake.in include/maxminddb_config.h.cmake.in
2222

2323
dist-hook:
2424
dev-bin/make-man-pages.pl $(distdir)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.63])
5-
AC_INIT([libmaxminddb], [1.12.0], [[email protected]])
5+
AC_INIT([libmaxminddb], [1.12.2], [[email protected]])
66
AC_CONFIG_SRCDIR([include/maxminddb.h])
77
AC_CONFIG_HEADERS([config.h include/maxminddb_config.h])
88

src/data-pool.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ int main(void) {
158158
}
159159

160160
static void test_can_multiply(void) {
161-
{ ok(can_multiply(SIZE_MAX, 1, SIZE_MAX), "1*SIZE_MAX is ok"); }
161+
{
162+
ok(can_multiply(SIZE_MAX, 1, SIZE_MAX), "1*SIZE_MAX is ok");
163+
}
162164

163-
{ ok(!can_multiply(SIZE_MAX, 2, SIZE_MAX), "2*SIZE_MAX is not ok"); }
165+
{
166+
ok(!can_multiply(SIZE_MAX, 2, SIZE_MAX), "2*SIZE_MAX is not ok");
167+
}
164168

165169
{
166170
ok(can_multiply(SIZE_MAX, 10240, sizeof(MMDB_entry_data_list_s)),

0 commit comments

Comments
 (0)