diff options
author | John Brooks <john.brooks@bluecherry.net> | 2011-10-12 10:53:12 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-13 05:31:01 +0400 |
commit | c1847c932b1576e8224c38e112a5fd29fa8a6098 (patch) | |
tree | ec6ca120e791ec174718e8762338aee2e9163ea9 /libavcodec/rv40dsp.c | |
parent | dc66951bb2a10c1c6e1352fd6f0a601dc77785e5 (diff) |
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 'libavcodec/rv40dsp.c')
0 files changed, 0 insertions, 0 deletions