[asterisk-dev] [Code Review] 3809: features config: prevent assert on no featuregroups or applicationmap

Scott Griepentrog reviewboard at asterisk.org
Thu Jul 17 14:16:44 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3809/
-----------------------------------------------------------

(Updated July 17, 2014, 2:16 p.m.)


Review request for Asterisk Developers.


Changes
-------

New approach as recommended by Richard.  Tests correctly on FreePBX test machine.


Repository: Asterisk


Description
-------

During testing, encountered an assert due to a null featuregroup passed to ao2_find().  This patch adds null checks around cfg->featuregroups and cfg->applicationmap, since they are not duplicated or initialized when features are copied.


Diffs (updated)
-----

  /team/group/media_formats-reviewed-trunk/main/features_config.c 418785 

Diff: https://reviewboard.asterisk.org/r/3809/diff/


Testing
-------

Repeated previously asserting test sequence with success.


Thanks,

Scott Griepentrog

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140717/09937170/attachment.html>


More information about the asterisk-dev mailing list