[asterisk-dev] [Code Review] 4089: config: Fix infinite loop when using ast_category_browse and ast_variable_retrieve together.
George Joseph
reviewboard at asterisk.org
Thu Oct 16 11:05:37 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4089/
-----------------------------------------------------------
(Updated Oct. 16, 2014, 10:05 a.m.)
Review request for Asterisk Developers, Joshua Colp and Matt Jordan.
Changes
-------
I reverted ast_variable_retrieve to its original implementation so calls to ast_category_browse aren't mixed with ast_category_browse_filtered.
The test was updated as Josh suggested and it passes.
I'll look for other cases.
Repository: Asterisk
Description
-------
Fix infinite loop when calling ast_variable_retrieve inside a ast_category_browse loop when there are more than 1 category with the same name.
1 line removed from ast_category_browse_filtered.
A unit test added.
Language updated in config.h for ast_category_browse (not necessarily related to this issue).
Diffs (updated)
-----
branches/12/tests/test_config.c 425698
branches/12/main/config.c 425698
branches/12/include/asterisk/config.h 425698
Diff: https://reviewboard.asterisk.org/r/4089/diff/
Testing
-------
Existing and new unit test pass.
Testsuite tests/manager/config pass.
Thanks,
George Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141016/f4bb64b4/attachment.html>
More information about the asterisk-dev
mailing list