Daniel-Constantin Mierla
2021-05-26 06:16:04 UTC
Content preview: Module: kamailio Branch: 5.5 Commit: baea325ab832a9f96e70c41f3aa542b7b99553fe
URL: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe
Author: Boris Korzun <***@miatel.ru> Committer: Daniel-Constantin Mierla
<***@gmail.com> Date: 2021-05-26T08:14:42+02:00
Content analysis details: (-2.4 points, 5.5 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
mail domains are different
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
EnvelopeFrom freemail headers are
different
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
Module: kamailio
Branch: 5.5
Commit: baea325ab832a9f96e70c41f3aa542b7b99553fe
URL: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe
Author: Boris Korzun <***@miatel.ru>
Committer: Daniel-Constantin Mierla <***@gmail.com>
Date: 2021-05-26T08:14:42+02:00
core: ut - fixed str_casesearch()
- fixed str_casesearch() behaviour on text and needle were equal
(cherry picked from commit c146ef490e1d7d35add7d3ee593f6d3d20e327ad)
---
Modified: src/core/ut.c
---
Diff: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe.diff
Patch: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe.patch
---
diff --git a/src/core/ut.c b/src/core/ut.c
index 08edd2f24e..c3849fcc24 100644
--- a/src/core/ut.c
+++ b/src/core/ut.c
@@ -327,7 +327,7 @@ char *stre_search_strz(char *vstart, char *vend, char *needlez)
char *str_casesearch(str *text, str *needle)
{
int i,j;
- for(i=0;i<text->len-needle->len;i++) {
+ for(i=0;i<=text->len-needle->len;i++) {
for(j=0;j<needle->len;j++) {
if ( !((text->s[i+j]==needle->s[j]) ||
( isalpha((int)text->s[i+j])
@@ -337,7 +337,7 @@ char *str_casesearch(str *text, str *needle)
if (j==needle->len)
return text->s+i;
}
- return 0;
+ return NULL;
}
/**
URL: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe
Author: Boris Korzun <***@miatel.ru> Committer: Daniel-Constantin Mierla
<***@gmail.com> Date: 2021-05-26T08:14:42+02:00
Content analysis details: (-2.4 points, 5.5 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
mail domains are different
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
EnvelopeFrom freemail headers are
different
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
Module: kamailio
Branch: 5.5
Commit: baea325ab832a9f96e70c41f3aa542b7b99553fe
URL: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe
Author: Boris Korzun <***@miatel.ru>
Committer: Daniel-Constantin Mierla <***@gmail.com>
Date: 2021-05-26T08:14:42+02:00
core: ut - fixed str_casesearch()
- fixed str_casesearch() behaviour on text and needle were equal
(cherry picked from commit c146ef490e1d7d35add7d3ee593f6d3d20e327ad)
---
Modified: src/core/ut.c
---
Diff: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe.diff
Patch: https://github.com/kamailio/kamailio/commit/baea325ab832a9f96e70c41f3aa542b7b99553fe.patch
---
diff --git a/src/core/ut.c b/src/core/ut.c
index 08edd2f24e..c3849fcc24 100644
--- a/src/core/ut.c
+++ b/src/core/ut.c
@@ -327,7 +327,7 @@ char *stre_search_strz(char *vstart, char *vend, char *needlez)
char *str_casesearch(str *text, str *needle)
{
int i,j;
- for(i=0;i<text->len-needle->len;i++) {
+ for(i=0;i<=text->len-needle->len;i++) {
for(j=0;j<needle->len;j++) {
if ( !((text->s[i+j]==needle->s[j]) ||
( isalpha((int)text->s[i+j])
@@ -337,7 +337,7 @@ char *str_casesearch(str *text, str *needle)
if (j==needle->len)
return text->s+i;
}
- return 0;
+ return NULL;
}
/**