ffmpeg/libavformat
Michael Niedermayer 32b95471a8 avformat/rtmppkt: Check for packet size mismatches
Fixes out of array access

Found-by: Paul Cher <paulcher@icloud.com>
Reviewed-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7d57ca4d9a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-06 00:07:50 +01:00
..
tests FATE: Add test for muxing discontinuous MP4 fragments with large timestamps 2016-10-19 13:25:21 +02:00
.gitignore
3dostr.c
4xm.c
Makefile avformat/fifo: Add fate test 2016-08-22 22:07:48 +02:00
a64.c
aacdec.c lavf/aacdec: Do not autodetect a single frame inside the file. 2016-09-24 18:33:55 +02:00
aadec.c
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h lavf/aiffdec: Support QDMC demuxing. 2016-07-03 04:37:48 +02:00
aiffdec.c aiff: check block_align in aiff_read_packet 2016-10-21 19:40:59 +02:00
aiffenc.c lavf/aiffenc: Write extradata also for qcelp. 2016-10-11 09:52:34 +02:00
aixdec.c
allformats.c avformat: Add fifo pseudo-muxer 2016-08-22 22:03:37 +02:00
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c Revert "apngdec: use side data to pass extradata to the decoder" 2016-11-18 12:33:21 -03:00
apngenc.c avformat/apngenc: use the stream parameters extradata if available 2016-11-18 12:33:31 -03:00
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
asfdec_o.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
asfenc.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c astdec: fix division by zero 2016-10-17 20:41:26 +02:00
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h lavf: add AV_DISPOSITION_TIMED_THUMBNAILS 2016-10-24 05:47:05 -05:00
avformatres.rc
avi.h
avidec.c lavf/avidec: Be more verbose when ignoring very large tag size. 2016-10-18 15:01:50 +02:00
avienc.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avio.c
avio.h
avio_internal.h avformat/avio: add a crc callback function for CRC-32 IEEE-LE 2016-08-04 16:25:32 -03:00
aviobuf.c lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API 2016-10-03 23:28:48 +02:00
avisynth.c avisynth: fix Planar RGB output 2016-10-27 17:24:04 +02:00
avlanguage.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avlanguage.h avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c lavf/bink.c: fix warning due to misleading indentation 2016-10-03 15:42:27 +01:00
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
concat.c
concatdec.c avformat/concatdec: don't call open_file when seek position within a file 2016-09-28 20:31:22 +02:00
crcenc.c
crypto.c avformat/crypto: add seeking support on read 2016-08-30 17:14:28 +02:00
cutils.c
dashenc.c lavf/movenc+dashenc: add automatic bitstream filtering 2016-10-24 03:53:23 -05:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c dcstr: fix division by zero 2016-10-21 19:41:09 +02:00
dfa.c
diracdec.c
dnxhddec.c avcodec/dnxhddata: move avpriv_dnxhd_parse_header_prefix to a header 2016-07-25 12:19:39 -03:00
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c Merge commit 'e45a638f50cc1dbeb87b9792e68f57e77fc0c3b5' 2016-06-26 14:13:36 +02:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c Merge commit 'b7f98659f21dce438c33b512e25fd64b8d07c347' 2016-06-29 11:16:01 +02:00
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c avformat/ffmdec: Check media type for chunks 2016-12-06 00:07:50 +01:00
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo.c avformat: Add fifo pseudo-muxer 2016-08-22 22:03:37 +02:00
file.c
file_open.c
filmstripdec.c filmstripdec: correctly check image dimensions 2016-11-17 23:18:29 +01:00
filmstripenc.c
flac_picture.c
flac_picture.h
flacdec.c
flacenc.c
flacenc.h
flacenc_header.c
flic.c
flv.h
flvdec.c flvdec: require need_context_update when changing codec id 2016-11-25 22:22:07 +01:00
flvenc.c avformat/flvenc: do not attempt to write duration and filesize when not seekable 2016-10-20 18:07:24 +02:00
format.c avformat/format: Fix registering a format more than once and related races 2016-06-25 20:09:10 +02:00
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c
g722.c
g723_1.c
g729dec.c
genh.c
gif.c
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hdsenc.c
hevc.c
hevc.h
hevcdec.c
hls.c avformat/hls: Add missing error check for avcodec_parameters_copy() 2016-11-07 19:06:08 +02:00
hlsenc.c lavf: fix typos 2016-10-09 20:09:00 +02:00
hlsproto.c
hnm.c
http.c http: move chunk handling from http_read_stream() to http_buf_read(). 2016-12-05 16:20:12 -05:00
http.h
httpauth.c lavf/httpauth: Do case-insensitive http header checks. 2016-09-03 13:56:40 +02:00
httpauth.h
icecast.c
icodec.c icodec: correctly check avio_read return value 2016-11-17 23:16:48 +01:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: fix memleak with empty strings 2016-08-11 14:10:19 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c avformat/idroqdec: Check chunk_size for being too large 2016-12-06 00:07:50 +01:00
idroqenc.c
iff.c
ilbc.c
img2.c lavf/img2: Remove ffv1-img. 2016-07-15 10:25:02 +02:00
img2.h
img2_alias_pix.c
img2_brender_pix.c
img2dec.c lavf/img2dec: Skip DQT segment when auto-detecting jpg. 2016-09-03 13:38:16 +02:00
img2enc.c avformat/img2enc: Use AV_FRAME_FILENAME_FLAGS_MULTIPLE, support tee: 2016-08-04 23:22:54 +02:00
ingenientdec.c
internal.h lavf/mux: add avformat_init_output 2016-10-24 03:53:21 -05:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c avformat/isom: Fix old API regression with exporting max bitrate 2016-10-26 19:46:00 +02:00
isom.h lavf/mov: improve `tref/chap` chapter handling 2016-10-24 05:47:10 -05:00
iss.c
iv8.c
ivfdec.c
ivfenc.c ivfenc: Add VPX codec tags. 2016-09-10 16:40:47 -07:00
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c
libavformat.v Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24' 2016-06-27 17:56:47 +02:00
libgme.c
libmodplug.c
libnut.c
libopenmpt.c libopenmpt: Add "date" to metadata. 2016-07-21 02:47:35 +01:00
librtmp.c librtmp: Avoid an infiniloop setting connection arguments 2016-07-26 12:05:29 -07:00
libsmbclient.c
libssh.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
matroska.c
matroska.h avformat/matroskadec: support parsing Chroma Location elements 2016-10-18 20:39:07 -03:00
matroskadec.c matroskadec: fix NULL pointer dereference in webm_dash_manifest_read_header 2016-11-17 23:14:52 +01:00
matroskaenc.c avformat/matroskaenc: fix cue relative position values when CRC32 is enabled 2016-10-26 16:30:05 -03:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c lavf: forward protocol_whitelist for the remaining cases 2016-08-05 16:18:49 +02:00
mmst.c
mov.c mov: immediately return from mov_fix_index without old index entries 2016-11-17 23:12:23 +01:00
mov_chan.c
mov_chan.h
movenc.c lavf/movenc+dashenc: add automatic bitstream filtering 2016-10-24 03:53:23 -05:00
movenc.h lavf/movenc: Allow to disable writing the timecode track. 2016-09-26 08:50:48 +02:00
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c lavf/mp3enc: write encoder delay/padding upon closing 2016-10-18 20:19:43 +02:00
mpc.c
mpc8.c
mpeg.c avformat/mpeg: Adjust vid probe threshold to correct mis-detection 2016-11-23 20:29:31 +01:00
mpeg.h
mpegenc.c
mpegts.c mpegts: prevent division by zero 2016-11-17 23:15:07 +01:00
mpegts.h
mpegtsenc.c lavf/mpegtsenc: fix autobsf when the first NAL is 0x1<XX> bytes 2016-10-04 01:20:20 -05:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c avformat/msf: add support for ATRAC3 codec 2016-09-15 16:59:31 +02:00
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c lavf/mux: add avformat_init_output 2016-10-24 03:53:21 -05:00
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c mxfdec: fix NULL pointer dereference in mxf_read_packet_old 2016-11-25 22:21:33 +01:00
mxfenc.c lavf/mxfenc: Do not print a useless error message. 2016-10-11 09:45:37 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nsvdec.c
nullenc.c
nut.c avformat/avcodec: support rawvideo with planar rgb and alpha in nut 2016-08-23 16:52:21 +02:00
nut.h
nutdec.c
nutenc.c
nuv.c
oggdec.c
oggdec.h avformat/oggdec: Fix integer overflow with invalid pts 2016-08-03 16:09:03 +02:00
oggenc.c avformat/oggenc: add vp8 muxing support 2016-07-20 22:32:48 -03:00
oggparsecelt.c
oggparsedaala.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c avformat/oggparsespeex: Check frames_per_packet and packet_size 2016-12-06 00:07:50 +01:00
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c lavf: fix typos 2016-10-09 20:09:00 +02:00
oma.c
oma.h
omadec.c
omaenc.c
options.c avformat/mux: implement AVFMT_FLAG_SHORTEST 2016-09-11 23:17:31 +02:00
options_table.h lavf: add a flag to enable/disable automatic bitstream filtering 2016-09-12 21:50:32 -05:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c lavf/pcmdec: Try to fix msvc compilation after 4c42d306. 2016-08-18 09:45:25 +02:00
pcmenc.c
pjsdec.c
pmpdec.c
protocols.c avformat: Add tee protocol 2016-07-19 18:41:19 +02:00
psxstr.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c
rawdec.h
rawenc.c lavf/rawenc: add automatic bitstream filtering for H264+HEVC 2016-10-24 03:53:24 -05:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c lavf/riff: Document the interleaving of VSM4 video. 2016-10-19 23:39:19 +02:00
riff.h
riffdec.c
riffenc.c lavf/riffenc: Always write unexpected channel_mask. 2016-10-12 12:34:48 +02:00
rl2.c
rm.c
rm.h
rmdec.c rmdec: validate block alignment 2016-11-25 22:21:44 +01:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c rsd: limit number of channels 2016-10-20 19:54:54 +02:00
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c lavf: forward protocol_whitelist for the remaining cases 2016-08-05 16:18:49 +02:00
rtmppkt.c avformat/rtmppkt: Check for packet size mismatches 2016-12-06 00:07:50 +01:00
rtmppkt.h
rtmpproto.c avformat/rtmpproto: Fix RTMP control message handling error in listen mode. 2016-10-21 16:16:32 +02:00
rtp.c
rtp.h
rtpdec.c lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02:00
rtpdec.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c libavformat/rtpdec_asf: zero initialize the AVIOContext struct 2016-07-25 19:39:13 +02:00
rtpdec_dv.c
rtpdec_formats.h lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02:00
rtpdec_g726.c lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02:00
rtpdec_h261.c
rtpdec_h263.c
rtpdec_h263_rfc2190.c
rtpdec_h264.c
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpenc.c
rtpenc.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263.c
rtpenc_h263_rfc2190.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c Merge commit '4024b566d664a4b161d677554be52f32e7ad4236' 2016-06-26 15:12:48 +02:00
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpproto.c
rtpproto.h
rtsp.c lavf/rtsp: Fix a crash with the RTSP muxer. 2016-09-15 13:50:57 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c sbgdec: prevent NULL pointer access 2016-11-25 22:21:48 +01:00
sctp.c
sdp.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
sdr2.c
segafilm.c
segment.c lavf/segment: fix writing separate header with auto BSF 2016-10-24 03:53:22 -05:00
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c lavf/srtdec: fix indent 2016-06-25 15:53:11 -05:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
svag.c
swf.c
swf.h
swfdec.c lavf: fix typos 2016-10-09 20:09:00 +02:00
swfenc.c
takdec.c Merge commit 'b668662939de3a02454cfc9ba3e6d10b87527a40' 2016-06-29 11:35:10 +02:00
tcp.c
tedcaptionsdec.c
tee.c avformat/tee: Copy interrupt callback and flags to slave 2016-09-29 17:17:26 +02:00
tee_common.c avformat/tee: Factor parse_slave_options() out 2016-08-02 20:22:55 +02:00
tee_common.h avformat/tee: Factor parse_slave_options() out 2016-08-02 20:22:55 +02:00
teeproto.c avformat/teeproto: set forgotten url_close() 2016-08-05 18:59:21 +02:00
thp.c
tiertexseq.c
tls.c
tls.h
tls_gnutls.c
tls_openssl.c openssl: Support version 1.1.0. 2016-10-21 15:16:44 +11:00
tls_schannel.c
tls_securetransport.c
tmv.c
tta.c avformat/tta: remove custom crc callback function 2016-08-04 16:25:36 -03:00
ttaenc.c avformat: add a TTA Muxer 2016-08-04 16:25:40 -03:00
tty.c
txd.c
udp.c lavf/udp: Do not use MCAST_* for multicast on tvOS. 2016-09-03 15:18:40 +02:00
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c avformat/utils: Check start/end before computing duration in update_stream_timings() 2016-12-06 00:07:50 +01:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h Revert "Bump minor versions after 3.2 branchpoint to seperate release" 2016-10-26 21:22:12 +02:00
vivo.c
voc.c
voc.h
voc_packet.c
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c
vplayerdec.c lavf/vplayerdec: Improve auto-detection. 2016-07-15 10:36:05 +02:00
vqf.c
w64.c
w64.h
wavdec.c
wavenc.c
wc3movie.c
webm_chunk.c libavformat/webm_chunk: Option to specify HTTP header 2016-09-16 03:13:21 +02:00
webmdashenc.c
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c westwood_aud: prevent division by zero 2016-10-17 20:42:18 +02:00
westwood_vqa.c
wsddec.c
wtv.h
wtv_common.c
wtvdec.c avformat/wtvdec: Check pointer before use 2016-08-21 21:31:46 +02:00
wtvenc.c
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c