]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_rtp.c: Fix uninitialized memory crash. 69/4669/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 21 Dec 2016 23:54:42 +0000 (17:54 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 22 Dec 2016 18:26:46 +0000 (12:26 -0600)
commita9400da2d34e4cbd4e42004ca47cac51fd22d5a0
tree2639c49f6ae039bc92848e3f41af5a8e4381c103
parenta2c695cd18fd150120223565d31417ded23b7a4d
chan_rtp.c: Fix uninitialized memory crash.

unicast_rtp_request() could pass an uninitialized 'us' parameter to
ast_ouraddrfor().  If ast_ouraddrfor() returns an error then the 'us'
parameter may not get initialized.  Thus when the code tries to save the
'us' parameter to the local address we could try to copy a ridiculous
sized memory buffer and segfault.

* Made pass an initialized 'us' parameter to ast_ouraddrfor() and abort
the UnicastRTP channel request if it fails.

ASTERISK-26672

Change-Id: I1ef7a7c09f4da4f15dcb6de660d2bcac5f2a95c0
channels/chan_rtp.c