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
September 2015
----- 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
37 participants
387 discussions
Start a n
N
ew thread
git:4.2:f7800627: tsilo: Fix pointer comparison in ts_set_tm_callbacks
by grumvalski
Module: kamailio Branch: 4.2 Commit: f7800627e169c171992a596df28c746aab4f03bc URL:
https://github.com/kamailio/kamailio/commit/f7800627e169c171992a596df28c746…
Author: Chris Double <chris.double(a)double.co.nz> Committer: grumvalski <federico.cabiddu(a)gmail.com> Date: 2015-09-23T16:13:28+02:00 tsilo: Fix pointer comparison in ts_set_tm_callbacks - Fix cloned ts_transaction pointer comparison to check for NULL rather than less than zero. The latter doesn't make sense for an allocated pointer. (cherry picked from commit e304f9d8d4cc16a3b6cca1cdd10dff6d0a18d955) --- Modified: modules/tsilo/ts_handlers.c --- Diff:
https://github.com/kamailio/kamailio/commit/f7800627e169c171992a596df28c746…
Patch:
https://github.com/kamailio/kamailio/commit/f7800627e169c171992a596df28c746…
--- diff --git a/modules/tsilo/ts_handlers.c b/modules/tsilo/ts_handlers.c index 6a1828a..c04ec36 100644 --- a/modules/tsilo/ts_handlers.c +++ b/modules/tsilo/ts_handlers.c @@ -40,14 +40,11 @@ int ts_set_tm_callbacks(struct cell *t, sip_msg_t *req, ts_transaction_t *ts) if(t==NULL) return -1; - if ( (ts_clone=clone_ts_transaction(ts)) < 0 ) { + if ( (ts_clone=clone_ts_transaction(ts)) == NULL ) { LM_ERR("failed to clone transaction\n"); return -1; } - if (ts_clone == NULL) { - LM_ERR("transaction clone null\n"); - } if ( _tmb.register_tmcb( req, t,TMCB_DESTROY, ts_onreply, (void*)ts_clone, free_ts_transaction)<0 ) { LM_ERR("failed to register TMCB for transaction %d:%d\n", t->hash_index, t->label);
9 years, 2 months
1
0
0
0
git:4.2:0adb7dbf: tsilo: Call LM_DBG with correct transaction information
by grumvalski
Module: kamailio Branch: 4.2 Commit: 0adb7dbff65131d75e5195569af876ce713c9838 URL:
https://github.com/kamailio/kamailio/commit/0adb7dbff65131d75e5195569af876c…
Author: Chris Double <chris.double(a)double.co.nz> Committer: grumvalski <federico.cabiddu(a)gmail.com> Date: 2015-09-23T16:13:23+02:00 tsilo: Call LM_DBG with correct transaction information - Use cb_ptr in ts_onreply LM_DBG call as the ptr variable is NULL at that call point and cb_ptr contains the transaction information being looked for. (cherry picked from commit 03f6a49146980338d7e31aec60da551f8b6e7595) --- Modified: modules/tsilo/ts_handlers.c --- Diff:
https://github.com/kamailio/kamailio/commit/0adb7dbff65131d75e5195569af876c…
Patch:
https://github.com/kamailio/kamailio/commit/0adb7dbff65131d75e5195569af876c…
--- diff --git a/modules/tsilo/ts_handlers.c b/modules/tsilo/ts_handlers.c index 7cf7970..6a1828a 100644 --- a/modules/tsilo/ts_handlers.c +++ b/modules/tsilo/ts_handlers.c @@ -89,7 +89,7 @@ void ts_onreply(struct cell* t, int type, struct tmcb_params *param) } ptr = ptr->next; } - LM_DBG("transaction %u:%u not found\n",ptr->tindex, ptr->tlabel); + LM_DBG("transaction %u:%u not found\n",cb_ptr->tindex, cb_ptr->tlabel); unlock_entry(_e); } else { LM_DBG("called with uknown type %d\n", type);
9 years, 2 months
1
0
0
0
git:4.3:7ba20025: tsilo: Fix pointer comparison in ts_set_tm_callbacks
by grumvalski
Module: kamailio Branch: 4.3 Commit: 7ba20025b12bc6754778de72bbca58b01f9c4f7b URL:
https://github.com/kamailio/kamailio/commit/7ba20025b12bc6754778de72bbca58b…
Author: Chris Double <chris.double(a)double.co.nz> Committer: grumvalski <federico.cabiddu(a)gmail.com> Date: 2015-09-23T16:12:52+02:00 tsilo: Fix pointer comparison in ts_set_tm_callbacks - Fix cloned ts_transaction pointer comparison to check for NULL rather than less than zero. The latter doesn't make sense for an allocated pointer. (cherry picked from commit e304f9d8d4cc16a3b6cca1cdd10dff6d0a18d955) --- Modified: modules/tsilo/ts_handlers.c --- Diff:
https://github.com/kamailio/kamailio/commit/7ba20025b12bc6754778de72bbca58b…
Patch:
https://github.com/kamailio/kamailio/commit/7ba20025b12bc6754778de72bbca58b…
--- diff --git a/modules/tsilo/ts_handlers.c b/modules/tsilo/ts_handlers.c index 6a1828a..c04ec36 100644 --- a/modules/tsilo/ts_handlers.c +++ b/modules/tsilo/ts_handlers.c @@ -40,14 +40,11 @@ int ts_set_tm_callbacks(struct cell *t, sip_msg_t *req, ts_transaction_t *ts) if(t==NULL) return -1; - if ( (ts_clone=clone_ts_transaction(ts)) < 0 ) { + if ( (ts_clone=clone_ts_transaction(ts)) == NULL ) { LM_ERR("failed to clone transaction\n"); return -1; } - if (ts_clone == NULL) { - LM_ERR("transaction clone null\n"); - } if ( _tmb.register_tmcb( req, t,TMCB_DESTROY, ts_onreply, (void*)ts_clone, free_ts_transaction)<0 ) { LM_ERR("failed to register TMCB for transaction %d:%d\n", t->hash_index, t->label);
9 years, 2 months
1
0
0
0
git:4.3:0be54999: tsilo: Call LM_DBG with correct transaction information
by grumvalski
Module: kamailio Branch: 4.3 Commit: 0be54999fe5025cf42fa9d5506e588542c7ec2ed URL:
https://github.com/kamailio/kamailio/commit/0be54999fe5025cf42fa9d5506e5885…
Author: Chris Double <chris.double(a)double.co.nz> Committer: grumvalski <federico.cabiddu(a)gmail.com> Date: 2015-09-23T16:12:10+02:00 tsilo: Call LM_DBG with correct transaction information - Use cb_ptr in ts_onreply LM_DBG call as the ptr variable is NULL at that call point and cb_ptr contains the transaction information being looked for. (cherry picked from commit 03f6a49146980338d7e31aec60da551f8b6e7595) --- Modified: modules/tsilo/ts_handlers.c --- Diff:
https://github.com/kamailio/kamailio/commit/0be54999fe5025cf42fa9d5506e5885…
Patch:
https://github.com/kamailio/kamailio/commit/0be54999fe5025cf42fa9d5506e5885…
--- diff --git a/modules/tsilo/ts_handlers.c b/modules/tsilo/ts_handlers.c index 7cf7970..6a1828a 100644 --- a/modules/tsilo/ts_handlers.c +++ b/modules/tsilo/ts_handlers.c @@ -89,7 +89,7 @@ void ts_onreply(struct cell* t, int type, struct tmcb_params *param) } ptr = ptr->next; } - LM_DBG("transaction %u:%u not found\n",ptr->tindex, ptr->tlabel); + LM_DBG("transaction %u:%u not found\n",cb_ptr->tindex, cb_ptr->tlabel); unlock_entry(_e); } else { LM_DBG("called with uknown type %d\n", type);
9 years, 2 months
1
0
0
0
git:master:0049a20f: Merge pull request #340 from doublec/sqlops_memory_leak
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 0049a20fe0bf1b755bfb61853e72b341099dc63d URL:
https://github.com/kamailio/kamailio/commit/0049a20fe0bf1b755bfb61853e72b34…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2015-09-23T14:44:00+02:00 Merge pull request #340 from doublec/sqlops_memory_leak sqlops: Fix memory leak in error condition --- Modified: modules/sqlops/sql_var.c --- Diff:
https://github.com/kamailio/kamailio/commit/0049a20fe0bf1b755bfb61853e72b34…
Patch:
https://github.com/kamailio/kamailio/commit/0049a20fe0bf1b755bfb61853e72b34…
--- diff --git a/modules/sqlops/sql_var.c b/modules/sqlops/sql_var.c index f21140a..9b8721b 100644 --- a/modules/sqlops/sql_var.c +++ b/modules/sqlops/sql_var.c @@ -255,7 +255,9 @@ int pv_parse_dbr_name(pv_spec_p sp, str *in) if(p>in->s+in->len || *p=='\0' || *p!=']') goto error_index; } else { - LM_ERR("unknow key [%.*s]\n", pvs.len, pvs.s); + LM_ERR("unknown key [%.*s]\n", pvs.len, pvs.s); + if(spv!=NULL) + pkg_free(spv); return -1; } sp->pvp.pvn.u.dname = (void*)spv;
9 years, 2 months
1
0
0
0
git:master:48de7505: sqlops: Fix memory leak in error condition
by Chris Double
Module: kamailio Branch: master Commit: 48de750550dd12016e957d60e0ae57e59944558d URL:
https://github.com/kamailio/kamailio/commit/48de750550dd12016e957d60e0ae57e…
Author: Chris Double <chris.double(a)double.co.nz> Committer: Chris Double <chris.double(a)double.co.nz> Date: 2015-09-23T23:48:31+12:00 sqlops: Fix memory leak in error condition - Fix pv_parse_dbr_name to free spv if the key is unknown. - Fix typo in error log in pv_parse_dbr_name. --- Modified: modules/sqlops/sql_var.c --- Diff:
https://github.com/kamailio/kamailio/commit/48de750550dd12016e957d60e0ae57e…
Patch:
https://github.com/kamailio/kamailio/commit/48de750550dd12016e957d60e0ae57e…
--- diff --git a/modules/sqlops/sql_var.c b/modules/sqlops/sql_var.c index 940ec5a..20ec672 100644 --- a/modules/sqlops/sql_var.c +++ b/modules/sqlops/sql_var.c @@ -257,7 +257,9 @@ int pv_parse_dbr_name(pv_spec_p sp, str *in) if(p>in->s+in->len || *p=='\0' || *p!=']') goto error_index; } else { - LM_ERR("unknow key [%.*s]\n", pvs.len, pvs.s); + LM_ERR("unknown key [%.*s]\n", pvs.len, pvs.s); + if(spv!=NULL) + pkg_free(spv); return -1; } sp->pvp.pvn.u.dname = (void*)spv;
9 years, 2 months
1
0
0
0
[kamailio] sqlops: Fix memory leak in error condition (#340)
by Chris Double
- Fix pv_parse_dbr_name to free spv if the key is unknown. - Fix typo in error log in pv_parse_dbr_name. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/340
-- Commit Summary -- * sqlops: Fix memory leak in error condition -- File Changes -- M modules/sqlops/sql_var.c (4) -- Patch Links --
https://github.com/kamailio/kamailio/pull/340.patch
https://github.com/kamailio/kamailio/pull/340.diff
--- Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/340
9 years, 2 months
2
1
0
0
git:master:2316b90f: Merge pull request #339 from doublec/sqlops_bad_free
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 2316b90fc22ab8b020d26b9c928f6e6e0fd0a885 URL:
https://github.com/kamailio/kamailio/commit/2316b90fc22ab8b020d26b9c928f6e6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2015-09-23T14:43:06+02:00 Merge pull request #339 from doublec/sqlops_bad_free sqlops: Don't pkg_free memory that wasn't pkg_malloc'd --- Modified: modules/sqlops/sql_var.c --- Diff:
https://github.com/kamailio/kamailio/commit/2316b90fc22ab8b020d26b9c928f6e6…
Patch:
https://github.com/kamailio/kamailio/commit/2316b90fc22ab8b020d26b9c928f6e6…
--- diff --git a/modules/sqlops/sql_var.c b/modules/sqlops/sql_var.c index 940ec5a..f21140a 100644 --- a/modules/sqlops/sql_var.c +++ b/modules/sqlops/sql_var.c @@ -104,7 +104,6 @@ int sql_parse_index(str *in, gparam_t *gp) if (gp->v.pvs == NULL) { LM_ERR("no pkg memory left for pv_spec_t\n"); - pkg_free(gp); return -1; } @@ -112,7 +111,6 @@ int sql_parse_index(str *in, gparam_t *gp) { LM_ERR("invalid PV identifier\n"); pkg_free(gp->v.pvs); - pkg_free(gp); return -1; } } else {
9 years, 2 months
1
0
0
0
git:master:460e0a60: sqlops: Don't pkg_free memory that wasn't pkg_malloc'd
by Chris Double
Module: kamailio Branch: master Commit: 460e0a6077d69cf74ceb4b095195b683fb49269c URL:
https://github.com/kamailio/kamailio/commit/460e0a6077d69cf74ceb4b095195b68…
Author: Chris Double <chris.double(a)double.co.nz> Committer: Chris Double <chris.double(a)double.co.nz> Date: 2015-09-23T22:17:21+12:00 sqlops: Don't pkg_free memory that wasn't pkg_malloc'd - Don't pkg_free the gparam_t parameter of sql_parse_index. When called within pv_parse_dbr_name that parameter is an internal field in the sql_pv_t structure and wasn't allocated with pkg_malloc. --- Modified: modules/sqlops/sql_var.c --- Diff:
https://github.com/kamailio/kamailio/commit/460e0a6077d69cf74ceb4b095195b68…
Patch:
https://github.com/kamailio/kamailio/commit/460e0a6077d69cf74ceb4b095195b68…
--- diff --git a/modules/sqlops/sql_var.c b/modules/sqlops/sql_var.c index 940ec5a..f21140a 100644 --- a/modules/sqlops/sql_var.c +++ b/modules/sqlops/sql_var.c @@ -104,7 +104,6 @@ int sql_parse_index(str *in, gparam_t *gp) if (gp->v.pvs == NULL) { LM_ERR("no pkg memory left for pv_spec_t\n"); - pkg_free(gp); return -1; } @@ -112,7 +111,6 @@ int sql_parse_index(str *in, gparam_t *gp) { LM_ERR("invalid PV identifier\n"); pkg_free(gp->v.pvs); - pkg_free(gp); return -1; } } else {
9 years, 2 months
1
0
0
0
[kamailio] sqlops: Don't pkg_free memory that wasn't pkg_malloc'd (#339)
by Chris Double
- Don't pkg_free the gparam_t parameter of sql_parse_index. When called within pv_parse_dbr_name that parameter is an internal field in the sql_pv_t structure and wasn't allocated with pkg_malloc. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/339
-- Commit Summary -- * sqlops: Don't pkg_free memory that wasn't pkg_malloc'd -- File Changes -- M modules/sqlops/sql_var.c (2) -- Patch Links --
https://github.com/kamailio/kamailio/pull/339.patch
https://github.com/kamailio/kamailio/pull/339.diff
--- Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/339
9 years, 2 months
2
1
0
0
← Newer
1
...
6
7
8
9
10
11
12
...
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