kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
November 2023
----- 2024 -----
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
15 participants
389 discussions
Start a n
N
ew thread
git:master:dbe5851e: ims: clang format
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: dbe5851eaab6de1e56caf2eb3063a487d23bbd2c URL:
https://github.com/kamailio/kamailio/commit/dbe5851eaab6de1e56caf2eb3063a48…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 ims: clang format --- Modified: src/lib/ims/ims_getters.c Modified: src/lib/ims/ims_getters.h Modified: src/lib/ims/useful_defs.h --- Diff:
https://github.com/kamailio/kamailio/commit/dbe5851eaab6de1e56caf2eb3063a48…
Patch:
https://github.com/kamailio/kamailio/commit/dbe5851eaab6de1e56caf2eb3063a48…
1 year
1
0
0
0
git:master:f2173298: cds: clang format
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: f21732981789fa8317327a7e8c8edd7901df6d74 URL:
https://github.com/kamailio/kamailio/commit/f21732981789fa8317327a7e8c8edd7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 cds: clang format --- Modified: src/lib/cds/base64.c Modified: src/lib/cds/base64.h Modified: src/lib/cds/cds.h Modified: src/lib/cds/dbid.c Modified: src/lib/cds/dbid.h Modified: src/lib/cds/dstring.c Modified: src/lib/cds/dstring.h Modified: src/lib/cds/hash_table.c Modified: src/lib/cds/hash_table.h Modified: src/lib/cds/list.h Modified: src/lib/cds/logger.h Modified: src/lib/cds/memory.c Modified: src/lib/cds/memory.h Modified: src/lib/cds/msg_queue.c Modified: src/lib/cds/msg_queue.h Modified: src/lib/cds/ptr_vector.c Modified: src/lib/cds/ref_cntr.c Modified: src/lib/cds/ref_cntr.h Modified: src/lib/cds/rr_serialize.c Modified: src/lib/cds/ser_profile.c Modified: src/lib/cds/ser_profile.h Modified: src/lib/cds/serialize.c Modified: src/lib/cds/serialize.h Modified: src/lib/cds/simple_profile.c Modified: src/lib/cds/simple_profile.h Modified: src/lib/cds/sip_utils.c Modified: src/lib/cds/sstr.c Modified: src/lib/cds/sstr.h Modified: src/lib/cds/sync.h Modified: src/lib/cds/vector.c Modified: src/lib/cds/vector.h --- Diff:
https://github.com/kamailio/kamailio/commit/f21732981789fa8317327a7e8c8edd7…
Patch:
https://github.com/kamailio/kamailio/commit/f21732981789fa8317327a7e8c8edd7…
1 year
1
0
0
0
git:master:e70a5294: binrpc: clang format
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: e70a52944af73fba31981f529101b28fe635e16e URL:
https://github.com/kamailio/kamailio/commit/e70a52944af73fba31981f529101b28…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 binrpc: clang format --- Modified: src/lib/binrpc/binrpc_api.c Modified: src/lib/binrpc/binrpc_api.h --- Diff:
https://github.com/kamailio/kamailio/commit/e70a52944af73fba31981f529101b28…
Patch:
https://github.com/kamailio/kamailio/commit/e70a52944af73fba31981f529101b28…
1 year
1
0
0
0
git:master:c99f0f49: lib/trie: clang format
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: c99f0f49a5aca0181a5d24e5798361b37a28cea3 URL:
https://github.com/kamailio/kamailio/commit/c99f0f49a5aca0181a5d24e5798361b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 lib/trie: clang format --- Modified: src/lib/trie/dtrie.c Modified: src/lib/trie/dtrie.h --- Diff:
https://github.com/kamailio/kamailio/commit/c99f0f49a5aca0181a5d24e5798361b…
Patch:
https://github.com/kamailio/kamailio/commit/c99f0f49a5aca0181a5d24e5798361b…
1 year
1
0
0
0
git:master:f967d2ba: lib/trie: proper support for very long numbers
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: f967d2ba2f0f6699fddf25c587fa007493d9b727 URL:
https://github.com/kamailio/kamailio/commit/f967d2ba2f0f6699fddf25c587fa007…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 lib/trie: proper support for very long numbers --- Modified: src/lib/trie/dtrie.c --- Diff:
https://github.com/kamailio/kamailio/commit/f967d2ba2f0f6699fddf25c587fa007…
Patch:
https://github.com/kamailio/kamailio/commit/f967d2ba2f0f6699fddf25c587fa007…
--- diff --git a/src/lib/trie/dtrie.c b/src/lib/trie/dtrie.c index 905ddead201..02107023080 100644 --- a/src/lib/trie/dtrie.c +++ b/src/lib/trie/dtrie.c @@ -126,7 +126,8 @@ int dtrie_insert(struct dtrie_node_t *root, const char *number, void *data, const unsigned int branches) { struct dtrie_node_t *node = root; - unsigned char digit, i=0; + unsigned char digit; + unsigned i=0; if (root == NULL) return -1; if (number == NULL) return -1; @@ -233,7 +234,8 @@ void **dtrie_longest_match(struct dtrie_node_t *root, const char *number, const unsigned int branches) { struct dtrie_node_t *node = root; - unsigned char digit, i = 0; + unsigned char digit; + unsigned int i = 0; void **ret = NULL; if (root == NULL) return NULL;
1 year
1
0
0
0
git:master:a59bc67c: pv: transformation number parmeter kept long value to match pv field type
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: a59bc67cd4bd1df3e81bdb494896b5a076f9d40d URL:
https://github.com/kamailio/kamailio/commit/a59bc67cd4bd1df3e81bdb494896b5a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 pv: transformation number parmeter kept long value to match pv field type --- Modified: src/modules/pv/pv_trans.c --- Diff:
https://github.com/kamailio/kamailio/commit/a59bc67cd4bd1df3e81bdb494896b5a…
Patch:
https://github.com/kamailio/kamailio/commit/a59bc67cd4bd1df3e81bdb494896b5a…
--- diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c index 48557ca977d..2c60cc7e656 100644 --- a/src/modules/pv/pv_trans.c +++ b/src/modules/pv/pv_trans.c @@ -2563,7 +2563,7 @@ int tr_eval_val( && (*_p == ' ' || *_p == '\t' || *_p == '\n')) \ _p++; \ while(is_in_str(_p, _in) && *_p >= '0' && *_p <= '9') { \ - if(_n > ((INT_MAX / 10) - 10)) { \ + if(_n > ((LONG_MAX / 10) - 10)) { \ LM_ERR("number value is too large\n"); \ goto error; \ } \ @@ -2577,7 +2577,7 @@ int tr_eval_val( } \ memset(_tp, 0, sizeof(tr_param_t)); \ _tp->type = TR_PARAM_NUMBER; \ - _tp->v.n = sign * n; \ + _tp->v.n = n * sign; \ } else { \ LM_ERR("tinvalid param in transformation: %.*s!!\n", _in->len, \ _in->s); \ @@ -2660,7 +2660,7 @@ char *tr_parse_string(str *in, trans_t *t) str name; str s; pv_spec_t *spec = NULL; - int n; + long n; int sign; tr_param_t *tp = NULL; @@ -3323,7 +3323,7 @@ char *tr_parse_paramlist(str *in, trans_t *t) char *start_pos; str s; str name; - int n; + long n; int sign; pv_spec_t *spec = NULL; tr_param_t *tp = NULL; @@ -3560,7 +3560,7 @@ char *tr_parse_line(str *in, trans_t *t) char *ps; str s; str name; - int n; + long n; int sign; pv_spec_t *spec = NULL; tr_param_t *tp = NULL;
1 year
1
0
0
0
git:master:6cc8f126: app_jsdt: length checks for resolving js module path
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 6cc8f126391476a05f8d90a35d6d57eec7c4e8d8 URL:
https://github.com/kamailio/kamailio/commit/6cc8f126391476a05f8d90a35d6d57e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-11-20T09:43:15+01:00 app_jsdt: length checks for resolving js module path --- Modified: src/modules/app_jsdt/app_jsdt_api.c --- Diff:
https://github.com/kamailio/kamailio/commit/6cc8f126391476a05f8d90a35d6d57e…
Patch:
https://github.com/kamailio/kamailio/commit/6cc8f126391476a05f8d90a35d6d57e…
--- diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c index 8ad015c89d9..68dc38f1b23 100644 --- a/src/modules/app_jsdt/app_jsdt_api.c +++ b/src/modules/app_jsdt/app_jsdt_api.c @@ -1072,23 +1072,42 @@ duk_ret_t cb_resolve_module(duk_context *JJ) const char *parent_id = duk_get_string(JJ, 1); char requested_path[PATH_MAX]; + char resolved_id[PATH_MAX]; + char *ptr = NULL; + + if(requested_id == NULL) { + return duk_generic_error(JJ, "Invalid parameter"); + } + if(strlen(requested_id) >= PATH_MAX) { + return duk_generic_error(JJ, "Parameter too long"); + } + requested_path[0] = '\0'; if(requested_id[0] == '/') { // absolute strcpy(requested_path, requested_id); } else if(strncmp(requested_id, "./", 2) || strncmp(requested_id, "../", 3)) { - if(strlen(parent_id)) { + if(parent_id != NULL && strlen(parent_id) > 0) { + if(strlen(parent_id) >= PATH_MAX) { + return duk_generic_error(JJ, "Second parameter too long"); + } // relative to parent strcpy(requested_path, parent_id); } else { + if(strlen(_sr_jsdt_load_file.s) >= PATH_MAX) { + return duk_generic_error(JJ, "Load file path too long"); + } // no parent so relative to jsdt_load_file strcpy(requested_path, _sr_jsdt_load_file.s); } - char *ptr = strrchr(requested_path, '/'); + ptr = strrchr(requested_path, '/'); if(ptr) { ptr++; *ptr = '\0'; } + if(strlen(requested_path) + strlen(requested_id) >= PATH_MAX) { + return duk_generic_error(JJ, "Path too long"); + } strcat(requested_path, requested_id); } else { LM_INFO("cb_resolve_module - TODO resolve pathless module names"); @@ -1096,9 +1115,11 @@ duk_ret_t cb_resolve_module(duk_context *JJ) } // if missing add .js ext if(strcmp(strrchr(requested_path, '\0') - 3, ".js")) { + if(strlen(requested_path) + 3 >= PATH_MAX) { + return duk_generic_error(JJ, "Path too long"); + } strcat(requested_path, ".js"); } - char resolved_id[PATH_MAX]; if(realpath(requested_path, resolved_id)) { duk_push_string(JJ, resolved_id); return 1; /*nrets*/
1 year
1
0
0
0
git:master:e54a4187: tls_wolfssl: enable building with external package
by SPChan
Module: kamailio Branch: master Commit: e54a41874de6393d71b50368ffb8a4982aed2d2d URL:
https://github.com/kamailio/kamailio/commit/e54a41874de6393d71b50368ffb8a49…
Author: SPChan <shihping.chan(a)gmail.com> Committer: SPChan <shihping.chan(a)gmail.com> Date: 2023-11-18T21:14:06+08:00 tls_wolfssl: enable building with external package - build with git submodule: make ...WOLFSSL_INTERNAL=yes... - the default - build with external package: make ...WOLFSSL_INTERNAL=no... Debian recommended environment is libwolfssl41 5.6.4, libwolfssl-dev 5.6.4 --- Modified: src/modules/tls_wolfssl/Makefile --- Diff:
https://github.com/kamailio/kamailio/commit/e54a41874de6393d71b50368ffb8a49…
Patch:
https://github.com/kamailio/kamailio/commit/e54a41874de6393d71b50368ffb8a49…
--- diff --git a/src/modules/tls_wolfssl/Makefile b/src/modules/tls_wolfssl/Makefile index fe2e7d8d4ed..1a6254ea7b2 100644 --- a/src/modules/tls_wolfssl/Makefile +++ b/src/modules/tls_wolfssl/Makefile @@ -8,6 +8,13 @@ include ../../Makefile.defs auto_gen= NAME=tls_wolfssl.so +# make WOLFSSL_INTERNAL=yes... for internal submodule +# make WOLFSSL_INTERNAL=no... for system package +# default: yes + +WOLFSSL_INTERNAL ?= yes + +ifeq ($(WOLFSSL_INTERNAL),yes) WOLFSSL_PREFIX = ../../../misc/external/wolfssl/build WOLFSSL_SRC = ../../../misc/external/wolfssl/wolfssl @@ -34,6 +41,15 @@ $(WOLFSSL_PREFIX)/include/wolfssl/options.h $(WOLFSSL_PREFIX)/lib/libwolfssl.a: $(NAME): $(WOLFSSL_PREFIX)/lib/libwolfssl.a +else +WOLFSSL_LIBS ?= $(shell pkg-config wolfssl --libs) +WOLFSSL_INCLUDES ?= $(shell pkg-config wolfssl --cflags) + +LIBS += $(WOLFSSL_LIBS) +INCLUDES += $(WOLFSSL_INCLUDES) +include ../../Makefile.modules +endif + clean-wolfssl: @rm -rf $(WOLFSSL_PREFIX)/{bin,include,share,lib}; \ (cd $(WOLFSSL_SRC); make distclean) || /bin/true
1 year
1
0
0
0
git:master:38aa7e5f: tls_wolfssl: update internal submodule to v5.6.4, and target 5.6.x for distro package
by SPChan
Module: kamailio Branch: master Commit: 38aa7e5fffcb68979a9bb5771aaa6ef9e14b517d URL:
https://github.com/kamailio/kamailio/commit/38aa7e5fffcb68979a9bb5771aaa6ef…
Author: SPChan <shihping.chan(a)gmail.com> Committer: SPChan <shihping.chan(a)gmail.com> Date: 2023-11-18T19:07:59+08:00 tls_wolfssl: update internal submodule to v5.6.4, and target 5.6.x for distro package --- Modified: misc/external/wolfssl/wolfssl --- Diff:
https://github.com/kamailio/kamailio/commit/38aa7e5fffcb68979a9bb5771aaa6ef…
Patch:
https://github.com/kamailio/kamailio/commit/38aa7e5fffcb68979a9bb5771aaa6ef…
--- diff --git a/misc/external/wolfssl/wolfssl b/misc/external/wolfssl/wolfssl index 3b3c175af0e..37884f864d6 160000 --- a/misc/external/wolfssl/wolfssl +++ b/misc/external/wolfssl/wolfssl @@ -1 +1 @@ -Subproject commit 3b3c175af0e993ffaae251871421e206cc41963f +Subproject commit 37884f864d6fd9b04f44677cb04da15d0c9d6526
1 year
1
0
0
0
git:master:dea9b252: tls_wolfssl: re-enable optimizations as qm/fm default to 16-byte alignment
by SPChan
Module: kamailio Branch: master Commit: dea9b25299ee273e45b0e08acacff8de87b7ceb9 URL:
https://github.com/kamailio/kamailio/commit/dea9b25299ee273e45b0e08acacff8d…
Author: SPChan <shihping.chan(a)gmail.com> Committer: SPChan <shihping.chan(a)gmail.com> Date: 2023-11-18T12:21:03+08:00 tls_wolfssl: re-enable optimizations as qm/fm default to 16-byte alignment --- Modified: src/modules/tls_wolfssl/Makefile --- Diff:
https://github.com/kamailio/kamailio/commit/dea9b25299ee273e45b0e08acacff8d…
Patch:
https://github.com/kamailio/kamailio/commit/dea9b25299ee273e45b0e08acacff8d…
--- diff --git a/src/modules/tls_wolfssl/Makefile b/src/modules/tls_wolfssl/Makefile index 730076023a9..fe2e7d8d4ed 100644 --- a/src/modules/tls_wolfssl/Makefile +++ b/src/modules/tls_wolfssl/Makefile @@ -25,7 +25,7 @@ $(WOLFSSL_PREFIX)/include/wolfssl/options.h $(WOLFSSL_PREFIX)/lib/libwolfssl.a: if [ ! -f "Makefile" ]; then \ env -u DEFS -u CFLAGS -u LDFLAGS -u LIBS EXTRA_CFLAGS="-g -O2 -fPIC" ./configure \ --enable-all --enable-pkcs11 --enable-static --enable-writedup \ - --disable-aligndata --disable-shared --disable-examples \ + --disable-shared --disable-examples \ --disable-jni --disable-crl-monitor \ --prefix=$(CURDIR)/$(WOLFSSL_PREFIX) \ --exec-prefix=$(CURDIR)/$(WOLFSSL_PREFIX); \
1 year
1
0
0
0
← Newer
1
...
24
25
26
27
28
29
30
...
39
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Results per page:
10
25
50
100
200