Skip to content

Commit 02bbaef

Browse files
committed
Merge remote-tracking branch 'origin/master' into gh-pages
2 parents a611de6 + ca5bf9b commit 02bbaef

9 files changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: '0 0 * * *' # every day at midnight
88

9+
env:
10+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
11+
912
jobs:
1013
gcc_ubuntu_18_04:
1114
strategy:
@@ -26,7 +29,7 @@ jobs:
2629
apt-get update && apt-get install -y git
2730
2831
- name: "Checkout libcdada"
29-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3033
with:
3134
path: libcdada
3235

@@ -53,7 +56,7 @@ jobs:
5356
CXX: g++-${{ matrix.version }}
5457
steps:
5558
- name: "Checkout libcdada"
56-
uses: actions/checkout@v2
59+
uses: actions/checkout@v3
5760
with:
5861
path: libcdada
5962

@@ -82,7 +85,7 @@ jobs:
8285
CXXFLAGS: -gdwarf-4
8386
steps:
8487
- name: "Checkout libcdada"
85-
uses: actions/checkout@v2
88+
uses: actions/checkout@v3
8689
with:
8790
path: libcdada
8891

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Contributors, ordered by first contribution date:
1010

1111
Paolo Lucente <paolo (at) pmacct.net>
1212
Peter Dobransky <peter (at) voltanet.io>
13+
Petr Vaněk <arkamar (at) atlas.cz>

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Legend:
99
- [O] Other
1010
```
1111

12+
### v0.6.1 (29th July 2024)
13+
14+
- [O] tests: fix segfault in map_test.c
15+
- [O] build: cleanup configure.ac from old/deprecated MACROs
16+
1217
### v0.6.0 (17th April 2024)
1318

1419
- [+] !! BREAKING CHANGE !! Add `prev_val` to `cdada_map_insert_replace()` API call to make it more useful

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.6.0
1+
v0.6.1

config_m4/debug.m4

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ else
1616
AC_MSG_RESULT(no)
1717
fi
1818
AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes)
19-
20-

configure.ac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ AC_CONFIG_MACRO_DIR([m4])
66

77
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
88

9-
AC_GNU_SOURCE
10-
119
AC_PROG_INSTALL
1210
AC_PROG_CC
1311
AC_PROG_CXX
14-
AC_PROG_LD
1512
AM_PROG_CC_C_O
1613
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
1714
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

test/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ benchmark_LDADD= -lpthread ../src/.libs/libcdada.a
6767

6868
#Valgrind
6969
if VALGRIND_ENABLED
70-
TESTS_ENVIRONMENT=valgrind --quiet --trace-children=yes --error-exitcode=1 \
70+
TESTS_ENVIRONMENT=valgrind --trace-children=yes --error-exitcode=1 \
7171
--dsymutil=yes --leak-check=yes \
7272
--leak-check-heuristics=all \
7373
--suppressions=$(top_srcdir)/test/locale.supp

test/map_test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ int test_basics(){
552552

553553
int rv;
554554

555-
void* ptr_not_null = (void*)0x123;
555+
int i = 0x123;
556+
void* ptr_not_null = (void*)&i;
556557

557558
//Create
558559
map = cdada_map_create(int);

test/str_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ int test_cmp(){
408408
== strncmp(s1, s2, overlen_avoid_compiler_warn));
409409

410410
TEST_ASSERT(cdada_str_ncmp_c(c1, s2, 7) == strncmp(s1, s2, 7));
411-
TEST_ASSERT(cdada_str_ncmp(c1, s2, 10) == strncmp(s1, s2, 10));
412-
TEST_ASSERT(cdada_str_ncmp(c1, s2, 12) == strncmp(s1, s2, 12));
413-
TEST_ASSERT(cdada_str_ncmp(c1, s2, overlen_avoid_compiler_warn)
411+
TEST_ASSERT(cdada_str_ncmp_c(c1, s2, 10) == strncmp(s1, s2, 10));
412+
TEST_ASSERT(cdada_str_ncmp_c(c1, s2, 12) == strncmp(s1, s2, 12));
413+
TEST_ASSERT(cdada_str_ncmp_c(c1, s2, overlen_avoid_compiler_warn)
414414
== strncmp(s1, s2, overlen_avoid_compiler_warn));
415415

416416
rv = cdada_str_destroy(c1);

0 commit comments

Comments
 (0)