]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_format_attr_opus: Fix crash when fmtp contains spaces. 78/4578/1
authorJoshua Colp <jcolp@digium.com>
Tue, 15 Nov 2016 00:18:21 +0000 (00:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Dec 2016 11:46:30 +0000 (11:46 +0000)
commit888142e89160169220bff1bae742f6ef558a7b11
tree718353b1b72d0162fec51049bd40e4c5e60530f5
parent738203f6e6b7c9f13b3b0da0e1b36e90165ce863
res_format_attr_opus: Fix crash when fmtp contains spaces.

When an opus offer or answer was received that contained an
fmtp line with spaces between the attributes the module would
fail to properly parse it and crash due to recursion.

This change makes the module handle the space properly and
also removes the recursion requirement.

ASTERISK-26579

Change-Id: I01f53e5d9fa9f1925a7365f8d25071b5b3ac2dc3
res/res_format_attr_opus.c