]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_format_attr_opus: Fix crash when fmtp contains spaces. 79/4579/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:47:04 +0000 (11:47 +0000)
commit98b94af8c3eab49249996eab8cb531685fc02dc0
treed1fdaadad07b97274f53a9ab27848a139c43aa2a
parent2303ae94b4e4865f08f3f3f051de5893a96c7bd6
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