asterisk/bridges
Richard Mudgett ee08f10d06 Fix ast_(v)asprintf() malloc failure usage conditions.
When (v)asprintf() fails, the state of the allocated buffer is undefined.
The library had better not leave an allocated buffer as a result or no one
will know to free it.  The most likely way it can return failure is for an
allocation failure.  If the printf conversion fails then you actually have
a threading problem which is much worse because another thread modified
the parameter values.

* Made __ast_asprintf()/__ast_vasprintf() set the returned buffer to NULL
on failure.  That is much more useful than either an uninitialized pointer
or a pointer that has already been freed.  Many uses won't have to check
for failure to ensure that the buffer won't be double freed or prevent an
attempt to free an uninitialized pointer.

* stasis.c: Fixed memory leak in multi_object_blob_to_ami() allocated by
ast_asprintf().

* ari/resource_bridges.c:ari_bridges_play_helper(): Remove assignment to
the wrong thing which is now not needed even if assigning to the right
thing.

Change-Id: Ib5252fb8850ecf0f78ed0ee2ca0796bda7e91c23
2017-11-06 12:47:30 -05:00
..
bridge_softmix bridge_softmix: Reduce topology cloning and improve renegotiation. 2017-10-17 05:45:40 -05:00
bridge_builtin_features.c Add missing menuselect dependencies. 2017-11-02 02:57:52 -04:00
bridge_builtin_interval_features.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
bridge_holding.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
bridge_native_rtp.c bridge : Fix one-way direct-media when early bridging with native_rtp 2017-09-20 10:19:37 -05:00
bridge_simple.c bridge_simple: Improve renegotiation success rate. 2017-10-13 17:24:08 -05:00
bridge_softmix.c Fix ast_(v)asprintf() malloc failure usage conditions. 2017-11-06 12:47:30 -05:00
bridges.xml Binaural synthesis (confbridge): Adds binaural synthesis to bridge_softmix. 2017-02-23 10:34:58 -07:00
Makefile Binaural synthesis (confbridge): Adds binaural synthesis to bridge_softmix. 2017-02-23 10:34:58 -07:00