This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2b444d84b53c4b469daa418227290e95b4bb784a Mon Sep 17 00:00:00 2001 | |
From: Liviu Chircu <liviu@opensips.org> | |
Date: Tue, 7 Feb 2023 21:32:52 +0200 | |
Subject: [PATCH] O1 | |
--- | |
mem/f_malloc.c | 6 ++++++ | |
mem/f_malloc.h | 3 +++ | |
mem/f_malloc_dyn.h | 29 ++++++++++++++++++++++++----- | |
3 files changed, 33 insertions(+), 5 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
void ruleaza_teste(void); | |
/** | |
* Pentru rezolvarea naivă, simulăm succesiv o parcurgere completă a | |
* buldozerului pentru fiecare înălțime, până când atingem o înălțime care | |
* nu mai este posibilă. În acest caz, ultima înălțime care a trecut este și |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 952b30fe594061b3e58b58fb58b2fa65d7061547 | |
Author: Liviu Chircu <liviu@opensips.org> | |
Date: Mon Jul 12 12:07:23 2021 +0300 | |
Update ChangeLog for 3.2.0-rc1 | |
diff --git a/ChangeLog b/ChangeLog | |
index c7f22096d..13445686e 100644 | |
--- a/ChangeLog | |
+++ b/ChangeLog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit f8907ea83feacadd9ff1ab65345d602c6114a14f | |
Author: Liviu Chircu <liviu@opensips.org> | |
Date: Mon Jul 12 12:07:22 2021 +0300 | |
Bump version to 3.2.0-rc1 | |
diff --git a/Makefile.defs b/Makefile.defs | |
index 0fcad2f5f..f56ce3f66 100644 | |
--- a/Makefile.defs | |
+++ b/Makefile.defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/fraud_detection/fraud_detection.c b/modules/fraud_detection/fraud_detection.c | |
index f4557d7a4..68eb1ecb6 100644 | |
--- a/modules/fraud_detection/fraud_detection.c | |
+++ b/modules/fraud_detection/fraud_detection.c | |
@@ -268,7 +268,7 @@ static int check_fraud(struct sip_msg *msg, str *user, str *number, int *pid) | |
static const int rc_error = -3, rc_critical_thr = -2, rc_warning_thr = -1, | |
rc_ok_thr = 1, rc_no_rule = 2; | |
frd_dlg_param *param; | |
- int rc = rc_ok_thr; | |
+ int rc = rc_ok_thr, itv_reset = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/action.c b/action.c | |
index de638cffd..3133cb86d 100644 | |
--- a/action.c | |
+++ b/action.c | |
@@ -274,7 +274,8 @@ int do_assign(struct sip_msg* msg, struct action* a) | |
if(a->elem[1].type != NULLV_ST) | |
{ | |
ret = eval_expr((struct expr*)a->elem[1].u.data, msg, &val); | |
- if(ret < 0 || !(val.flags & (PV_VAL_STR | PV_VAL_INT | PV_VAL_NULL))) | |
+ if(ret < 0 || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/avpops/avpops_db.c b/modules/avpops/avpops_db.c | |
index 4fc747fb6..4b953e4ed 100644 | |
--- a/modules/avpops/avpops_db.c | |
+++ b/modules/avpops/avpops_db.c | |
@@ -544,6 +544,12 @@ int db_query_avp_print_results(struct sip_msg *msg, const db_res_t *db_res, | |
avp_val.n = | |
(int)RES_ROWS(db_res)[i].values[j].val.bigint_val; | |
break; | |
+ case DB_DOUBLE: | |
+ avp_type |= AVP_VAL_STR; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/async.c b/async.c | |
index 221a18e16..d4fdf82fb 100644 | |
--- a/async.c | |
+++ b/async.c | |
@@ -233,7 +233,7 @@ run_route: | |
run_top_route( rlist[ctx->report_route].a, &req); | |
/* remove all added AVP */ | |
- reset_avps( ); | |
+ reset_avps(__FILE__, __FUNCTION__, __LINE__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/transformations.c b/transformations.c | |
index c1ad7c967..f5c63b4c5 100644 | |
--- a/transformations.c | |
+++ b/transformations.c | |
@@ -53,7 +53,16 @@ | |
#define TR_BUFFER_SIZE 65536 | |
-static char _tr_buffer[TR_BUFFER_SIZE]; | |
+/* two buffers are enough to allow infinite chaining (R/W <-> W/R) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/mid_registrar/mid_registrar.c b/modules/mid_registrar/mid_registrar.c | |
index 9e7aa5afe..86292d1e7 100644 | |
--- a/modules/mid_registrar/mid_registrar.c | |
+++ b/modules/mid_registrar/mid_registrar.c | |
@@ -552,8 +552,11 @@ str get_extra_ct_params(struct sip_msg *msg) | |
return null_str; | |
} | |
- if (extra_params.flags & PV_VAL_NULL) | |
+ if (extra_params.flags & PV_VAL_NULL) { |
NewerOlder