diff options
author | John Brooks <john.brooks@bluecherry.net> | 2011-10-12 00:53:12 -0600 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-13 03:31:01 +0200 |
commit | c1847c932b1576e8224c38e112a5fd29fa8a6098 (patch) | |
tree | ec6ca120e791ec174718e8762338aee2e9163ea9 /libavformat/rtpenc_mpv.c | |
parent | dc66951bb2a10c1c6e1352fd6f0a601dc77785e5 (diff) | |
download | ffmpeg-c1847c932b1576e8224c38e112a5fd29fa8a6098.tar.gz |
Correct buffer handling for RTCP packets
Previous code could read 4 bytes past the end of the buffer on a RTCP_SR
packet or offset a pointer by an unchecked external value (payload_len),
though neither will reliably cause a crash or other misbehavior beyond
garbage timestamps.
Additionally, unknown RTCP packet types, even in compounded packets, are
now ignored as per RFC 3550 section 6.1, page 22, though currently this
only has any practical effect if a sender puts an unrecognized type
before RTCP_BYE in a compounded packet, or (incorrectly) does not put
RTCP_SR first.
Signed-off-by: John Brooks <john.brooks@bluecherry.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpenc_mpv.c')
0 files changed, 0 insertions, 0 deletions