sdp: Check that fmt->oformat is non-null before accessing it
authorMartin Storsjö <martin@martin.st>
Fri, 3 Jan 2014 13:47:02 +0000 (15:47 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 5 Jan 2014 21:49:49 +0000 (16:49 -0500)
commit12479588d7894a6d9827c53d89f235e006b95533
treeaae9ba4de8b3c63a4fb7a955ba3992bebc10002c
parent3e089e8f7158176edc019182d2177f5797e1cad2
sdp: Check that fmt->oformat is non-null before accessing it

This avoids crashes when avserver tries to create an SDP, since
d77f4af.

Addresses: CVE-2012-6617

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 82b9799bb211ecd117171115e4a8b832c4942314)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/sdp.c