[Asterisk-code-review] app_read: Fix null pointer crash (asterisk[16])

N A asteriskteam at digium.com
Thu Sep 30 06:10:41 CDT 2021


Attention is currently required from: Sean Bright, Joshua Colp.
N A has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/16548 )

Change subject: app_read: Fix null pointer crash
......................................................................


Patch Set 5:

(1 comment)

File apps/app_read.c:

https://gerrit.asterisk.org/c/asterisk/+/16548/comment/06332f3f_96e03c1c 
PS4, Line 253: 					if (terminator && strchr(terminator, tmp[x-1])) {
> This is no longer needed, terminator is always set now.
Fixed. But suppose, in the future, somebody reverted the initialization back to NULL as part of an "optimization"? This safeguards against crashing even then.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16548
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ie941833e123c3dbfb88371b5de5edbbe065514ac
Gerrit-Change-Number: 16548
Gerrit-PatchSet: 5
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Thu, 30 Sep 2021 11:10:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210930/c042353d/attachment.html>


More information about the asterisk-code-review mailing list