asterisk/channels/pjsip
Richard Mudgett 11ec2945c7 chan_pjsip: Fix PJSIP_MEDIA_OFFER dialplan function read.
The construction of the returned string assumed incorrectly that the
supplied buffer would always be initialized as an empty string.  If it is
not an empty string we could overrun the supplied buffer by the length of
the non-empty buffer string plus one.  It is also theoreticaly possible
for the supplied buffer to be overrun by a string terminator during a read
operation even if the supplied buffer is an empty string.

* Fix the assumption that the supplied buffer would already be an empty
string.  The buffer is not guaranteed to contain an empty string by all
possible callers.

* Fix string terminator buffer overrun potential.

Change-Id: If6a0806806527678c8554b1dcb34fd7808aa95c9
2017-06-15 12:35:53 -05:00
..
include channels/chan_pjsip: Add PJSIP_SEND_SESSION_REFRESH 2016-08-10 11:30:01 -05:00
cli_commands.c pjsip/cli_commands: pjsip show channelstats shows wrong codec 2017-03-09 15:45:48 -06:00
dialplan_functions.c chan_pjsip: Fix PJSIP_MEDIA_OFFER dialplan function read. 2017-06-15 12:35:53 -05:00