[Asterisk-code-review] res_crypto: Don't load non-regular files in keys directory (asterisk[master])

George Joseph asteriskteam at digium.com
Wed Sep 7 06:08:02 CDT 2022


Attention is currently required from: Kevin Harwell, Philip Prindeville.

George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/18533 )

Change subject: res_crypto: Don't load non-regular files in keys directory
......................................................................


Patch Set 16: Code-Review-1

(1 comment)

File res/res_crypto.c:

https://gerrit.asterisk.org/c/asterisk/+/18533/comment/bb40dc8a_67cb10f7 
PS16, Line 509: 		while ((ent = readdir(dir))) {
readdir is not thread safe.  Please use ast_file_read_dir() or ast_file_read_dirs().

What about symlinks to keys?



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ie77e0648f8b0b1c2159fb24662d1989cfd4cc36d
Gerrit-Change-Number: 18533
Gerrit-PatchSet: 16
Gerrit-Owner: Philip Prindeville <philipp at redfish-solutions.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <default.enum at gmail.com>
Gerrit-Reviewer: N A <mail at interlinked.x10host.com>
Gerrit-Attention: Kevin Harwell <default.enum at gmail.com>
Gerrit-Attention: Philip Prindeville <philipp at redfish-solutions.com>
Gerrit-Comment-Date: Wed, 07 Sep 2022 11:08:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220907/9f21ae5b/attachment.html>


More information about the asterisk-code-review mailing list