Compare commits

...

3 Commits

Author SHA1 Message Date
Asterisk Development Team
af5acc405d Update for 20.7.0 2024-03-18 13:21:48 +00:00
Asterisk Development Team
9b6c74e82a Update for 20.7.0-rc2 2024-03-11 17:17:22 +00:00
George Joseph
d7597e5148 res_pjsip_stir_shaken.c: Add checks for missing parameters
* Added checks for missing session, session->channel and rdata
  in stir_shaken_incoming_request.

* Added checks for missing session, session->channel and tdata
  in stir_shaken_outgoing_request.

Resolves: #645
2024-03-11 11:07:00 -06:00
4 changed files with 42 additions and 7 deletions

View File

@@ -1 +1 @@
20.7.0-rc1
20.7.0

View File

@@ -1 +1 @@
ChangeLogs/ChangeLog-20.7.0-rc1.md
ChangeLogs/ChangeLog-20.7.0.md

View File

@@ -1,18 +1,19 @@
Change Log for Release asterisk-20.7.0-rc1
Change Log for Release asterisk-20.7.0
========================================
Links:
----------------------------------------
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-20.7.0-rc1.md)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/20.6.0...20.7.0-rc1)
- [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20.7.0-rc1.tar.gz)
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-20.7.0.md)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/20.6.0...20.7.0)
- [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20.7.0.tar.gz)
- [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
Summary:
----------------------------------------
- res_pjsip_stir_shaken.c: Add checks for missing parameters
- app_dial: Add dial time for progress/ringing.
- app_voicemail: Properly reinitialize config after unit tests.
- app_queue.c : fix "queue add member" usage string
@@ -134,6 +135,7 @@ Closed Issues:
- #629: [bug]: app_voicemail: Multiple executions of unit tests cause segfault
- #634: [bug]: make install doesn't create the stir_shaken cache directory
- #636: [bug]: Possible SEGV in res_stir_shaken due to wrong free function
- #645: [bug]: Occasional SEGV in res_pjsip_stir_shaken.c
Commits By Author:
----------------------------------------
@@ -145,12 +147,13 @@ Commits By Author:
- main/utils: Simplify the FreeBSD ast_get_tid() handling
- BuildSystem: Bump autotools versions on OpenBSD.
- ### George Joseph (5):
- ### George Joseph (6):
- Reduce startup/shutdown verbose logging
- pjsip show channelstats: Prevent possible segfault when faxing
- Stir/Shaken Refactor
- Makefile: Add stir_shaken/cache to directories created on install
- attestation_config.c: Use ast_free instead of ast_std_free
- res_pjsip_stir_shaken.c: Add checks for missing parameters
- ### Joshua C. Colp (1):
- utils: Make behavior of ast_strsep* match strsep.
@@ -203,6 +206,18 @@ Commits By Author:
Detail:
----------------------------------------
- ### res_pjsip_stir_shaken.c: Add checks for missing parameters
Author: George Joseph
Date: 2024-03-11
* Added checks for missing session, session->channel and rdata
in stir_shaken_incoming_request.
* Added checks for missing session, session->channel and tdata
in stir_shaken_outgoing_request.
Resolves: #645
- ### app_dial: Add dial time for progress/ringing.
Author: Naveen Albert
Date: 2024-02-08

View File

@@ -211,6 +211,16 @@ static int stir_shaken_incoming_request(struct ast_sip_session *session, pjsip_r
enum process_failure_rc p_rc;
SCOPE_ENTER(1, "%s: Enter\n", session_name);
if (!session) {
SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "No session\n");
}
if (!session->channel) {
SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: No channel\n", session_name);
}
if (!rdata) {
SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: No rdata\n", session_name);
}
/* Check if this is a reinvite. If it is, we don't need to do anything */
if (rdata->msg_info.to->tag.slen) {
SCOPE_EXIT_RTN_VALUE(0, "%s: Reinvite. No action needed\n", session_name);
@@ -401,6 +411,16 @@ static void stir_shaken_outgoing_request(struct ast_sip_session *session,
const char *session_name = ast_sip_session_get_name(session);
SCOPE_ENTER(1, "%s: Enter\n", session_name);
if (!session) {
SCOPE_EXIT_LOG_RTN(LOG_ERROR, "No session\n");
}
if (!session->channel) {
SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: No channel\n", session_name);
}
if (!tdata) {
SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: No tdata\n", session_name);
}
old_identity = pjsip_msg_find_hdr_by_name(tdata->msg, &identity_hdr_str, NULL);
if (old_identity) {
SCOPE_EXIT_RTN("Found an existing Identity header\n");