1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavformat
Steven Liu ef7fe81b85 flvdec: Check the avio_seek return value after reading a metadata packet
merge from libav: 585dc1aece

If the metadata packet is corrupted, flv_read_metabody can accidentally
read past the start of the next packet. If the start of the next packet
had been flushed out of the IO buffer, we would be unable to seek to
the right position (on a nonseekable stream).

Prefer to clearly error out instead of silently trying to read from a
desynced stream which will only be interpreted as garbage.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2017-09-07 08:30:14 +08:00
..
tests Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c avformat/aacdec: add a custom read_packet function 2017-06-04 11:52:02 -03:00
aadec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c avcodec/adtsenc: check packet side data for AAC extradata updates 2017-05-24 20:28:00 -03:00
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c lavf: fix usages of av_get_codec_tag_string() 2017-03-29 14:49:29 +02:00
aiffenc.c
aixdec.c
allformats.c Add FITS Muxer 2017-08-30 12:13:02 +02:00
amr.c lavf/amr: Return AVERROR_EOF on EOF. 2017-03-31 18:19:41 +02:00
anm.c
apc.c
ape.c lavf/ape: remove unused magic field 2017-03-29 14:49:29 +02:00
apetag.c
apetag.h
apngdec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
apngenc.c
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/asfdec: Fix DoS due to lack of eof check 2017-08-27 19:21:42 +02:00
asfdec_o.c
asfenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h libavformat/avformat.h: Move docs inside of #if 2017-06-30 14:35:25 +02:00
avformatres.rc
avi.h
avidec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
avienc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
avio_internal.h lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
avio.c avformat/avio: Remove no-op code in url_find_protocol(). 2017-07-10 06:56:51 +07:00
avio.h lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
aviobuf.c lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
avisynth.c Merge commit '3cc3463f306f425f76bd962755df1132eeac6dfa' 2017-04-01 12:16:45 +02:00
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c lavf/bink: fix latest header and add all existing revisions 2017-08-20 11:33:51 +02:00
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
c93.c
cache.c
caf.c
caf.h
cafdec.c lavf: use av_fourcc2str() where appropriate 2017-03-29 14:49:29 +02:00
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c avformat/cinedec: Fix DoS due to lack of eof check 2017-08-27 19:22:08 +02:00
concat.c
concatdec.c avformat/concatdec: add fallback for calculating file duration 2017-08-31 15:33:52 +01:00
crcenc.c
crypto.c Merge commit 'd860a3cc0a12360a92b9ffd179a0c34413beaf88' 2017-04-01 15:45:32 +02:00
cutils.c
dash.c avformat/dash:add copyright to dash.c 2017-09-01 18:52:56 +08:00
dash.h avformat/dash: move reused API to common file and header file 2017-09-01 10:20:56 +08:00
dashenc.c avformat/dash: move reused API to common file and header file 2017-09-01 10:20:56 +08:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c
dfa.c
diracdec.c
dnxhddec.c
dsfdec.c
dsicin.c
dss.c
dtsdec.c avcodec/dca: remove GetBitContext usage from avpriv_dca_parse_core_frame_header() 2017-07-21 12:18:10 -03:00
dtshddec.c
dump.c lavf/dump: Remove superfluous cast. 2017-08-29 01:33:47 +02:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c lavf: use av_fourcc2str() where appropriate 2017-03-29 14:49:29 +02:00
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo.c libavformat/fifo: Fix initialization of underlying AVFormatContext 2017-07-19 10:08:19 +02:00
file_open.c
file.c avformat/file: increase min/max packet size to 256k for written files 2017-06-24 18:51:29 +02:00
filmstripdec.c
filmstripenc.c
fitsdec.c Add FITS Demuxer 2017-08-30 12:13:01 +02:00
fitsenc.c Add FITS Muxer 2017-08-30 12:13:02 +02:00
flac_picture.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c flvdec: Check the avio_seek return value after reading a metadata packet 2017-09-07 08:30:14 +08:00
flvenc.c
format.c
framecrcenc.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
framehash.c
frmdec.c
fsb.c
ftp.c avformat/ftp: Solve a crash bug when network occur a exception 2017-04-05 23:57:08 +02:00
g722.c
g723_1.c
g726.c lavf/g726: Demuxer for raw G.726 streams, both left- and right-justified. 2017-08-24 12:55:46 +02:00
g729dec.c
gdv.c libavformat/gdv: Fix parsing for soundless video 2017-07-05 23:25:58 +02:00
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 Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
hevc.c
hevc.h
hevcdec.c
hls.c avformat/hls: Fix DoS due to infinite loop 2017-08-27 19:19:00 +02:00
hlsenc.c avformat/hlsenc: Added configuration to override HTTP User-Agent 2017-09-05 23:30:52 +08:00
hlsproto.c
hnm.c
http.c libavformat/http: return EIO when ffurl_read return 0, but s->off < target_end 2017-06-09 13:27:44 +02:00
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: Use ffio_ensure_seekback() in id3v2_read_internal() 2017-05-19 21:14:26 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c lavf: use av_fourcc2str() where appropriate 2017-03-29 14:49:29 +02:00
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c lavf/img2: Add svg and svgz to allow reading image sequences. 2017-05-22 01:09:21 +02:00
img2.h
img2dec.c lavf/img2: Add svg and svgz to allow reading image sequences. 2017-05-22 01:09:21 +02:00
img2enc.c Add FITS Muxer 2017-08-30 12:13:02 +02:00
ingenientdec.c
internal.h lavf: consider codec framerate for framerate detection 2017-06-07 11:08:06 +02:00
ipmovie.c Interplay MVE: Implement frame format 0x10 2017-06-27 15:09:12 +02:00
ircam.c
ircam.h
ircamdec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
ircamenc.c
isom.c avcodec/magicyuv: add 12 bit formats 2017-07-10 12:03:08 +02:00
isom.h avformat/mov: Fix trampling of ctts during seeks when sidx support is enabled. 2017-08-24 11:02:22 +02:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c avformat/latmenc: check packet side data for AAC extradata updates 2017-05-24 20:28:00 -03:00
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c avformat/libopenmpt: Check for avio_size() failure 2017-03-30 23:35:18 +02:00
librtmp.c avformat/librtmp: check return value of setsockopt 2017-06-13 19:48:08 +02:00
libsmbclient.c
libssh.c avformat/libssh: check the user provided a password before trying to use it 2017-06-17 17:16:13 -03:00
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
m4vdec.c
Makefile avformat/dash: move reused API to common file and header file 2017-09-01 10:20:56 +08:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: fix resource leak 2017-05-07 11:29:08 +08:00
matroskaenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c lavf: use av_fourcc2str() where appropriate 2017-03-29 14:49:29 +02:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov_chan.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
mov_chan.h
mov.c avformat/mov: prevent duplication of first fragment's ctts_data 2017-09-01 00:56:32 +02:00
movenc.c avformat/movenc: reindent after the previous commit 2017-08-09 23:15:38 -03:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
mpc8.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
mpc.c
mpeg.c
mpeg.h
mpegenc.c
mpegts.c lavf: consider codec framerate for framerate detection 2017-06-07 11:08:06 +02:00
mpegts.h
mpegtsenc.c mpegtsenc: Don't pass NULL to memcpy 2017-07-06 21:28:20 -04:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c avformat: make flush_packets a tri-state and set it to -1 (auto) by default 2017-06-24 18:51:29 +02:00
mvdec.c avformat/mvdec: Fix DoS due to lack of eof check 2017-08-27 19:23:37 +02:00
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Fix Sign error in mxf_read_primer_pack() 2017-09-01 01:48:39 +02:00
mxfenc.c avformat/mxfenc: Replace literal numbers by named enum values. 2017-08-30 02:15:36 +02:00
mxg.c
ncdec.c
network.c libavformat/tcp: fix return code for tcp_accept 2017-05-10 14:00:20 +02:00
network.h
nistspheredec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
nsvdec.c avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop. 2017-09-01 01:48:31 +02:00
nullenc.c
nut.c avformat/nut: Add HEVC and Opus support 2017-03-30 13:26:04 +02:00
nut.h
nutdec.c lavf/nutdec: Fix an impossible condition, regression since e0c53c34. 2017-05-02 08:43:12 +02:00
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c avformat/oggenc: check for stream private data in ogg_free() 2017-06-22 16:12:51 -03:00
oggparsecelt.c avformat/oggparsecelt: Do not re-allocate os->private 2017-07-25 22:04:34 +02:00
oggparsedaala.c avformat/oggparsedaala: Do not leave an invalid value in gpshift 2017-04-01 22:09:23 +02:00
oggparsedirac.c
oggparseflac.c
oggparseogm.c avformat/oggparseogm: Check ff_alloc_extradata() for failure 2017-04-11 21:28:26 +02:00
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c
omaenc.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
options_table.h avformat: make flush_packets a tri-state and set it to -1 (auto) by default 2017-06-24 18:51:29 +02:00
options.c avformat/options: log filename on open 2017-06-03 23:14:04 +02:00
os_support.c
os_support.h lavf/os_support: Use existing WinRT config value. 2017-07-30 14:31:04 +10:00
paf.c
pcm.c
pcm.h
pcmdec.c avformat/pcmdec: fix memory leak 2017-06-13 19:49:06 +02:00
pcmenc.c
pjsdec.c
pmpdec.c
prompeg.c avformat: Fix Pro-MPEG non-square matrix 2017-06-27 12:54:06 +02:00
protocols.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
rawdec.h
rawenc.c lavf/rawenc: Add little- and big-endian G.726 muxers. 2017-08-26 11:43:09 +02:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c avformat/riff: remove useless tag correlation 'mpg2'->MPEG1VIDEO. 2017-08-02 15:26:35 +02:00
riff.h avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
riffdec.c
riffenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
rl2.c avformat/rl2: Fix DoS due to lack of eof check 2017-08-27 19:23:30 +02:00
rm.c
rm.h
rmdec.c avformat/rmdec: Fix DoS due to lack of eof check 2017-08-27 19:23:13 +02:00
rmenc.c avformat/rmenc: do not access AVIO write buffer directly 2017-06-18 16:16:52 +02:00
rmsipr.c
rmsipr.h
rpl.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
rsd.c lavf: fix usages of av_get_codec_tag_string() 2017-03-29 14:49:29 +02:00
rso.c
rso.h
rsodec.c
rsoenc.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c
rtmppkt.c avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2 2017-07-29 04:05:53 +02:00
rtmppkt.h
rtmpproto.c rtmpproto: Fix error return 2017-07-07 15:30:57 -04:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c
rtpdec_dv.c
rtpdec_formats.h rtp: rfc4175: add handler for YCbCr-4:2:2 2017-04-05 17:03:21 +01:00
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c avformat/rtpdec_h264: Fix heap-buffer-overflow 2017-08-23 22:19:33 +02:00
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
rtpdec_latm.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_rfc4175.c rtp: rfc4175: add handler for YCbCr-4:2:2 2017-04-05 17:03:21 +01:00
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
rtpdec.c rtp: rfc4175: add handler for YCbCr-4:2:2 2017-04-05 17:03:21 +01:00
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
rtpenc.h
rtpproto.c Merge commit '67351924fa91dea4339109100a4c0689f006581f' 2017-03-30 10:26:29 +02:00
rtpproto.h
rtsp.c lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
rtsp.h
rtspcodes.h
rtspdec.c rtspdec: Fix return error 2017-07-10 15:02:29 -04:00
rtspenc.c
s337m.c avformat/s337m: fix potentially undefined pointer arithmetic 2017-07-26 21:23:07 +03:00
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sccdec.c
sccenc.c
sctp.c
sdp.c
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c
segment.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
smush.c Merge commit '67351924fa91dea4339109100a4c0689f006581f' 2017-03-30 10:26:29 +02:00
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
srtdec.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c libavformat/subfile: return AVERROR_EOF on EOF 2017-06-17 22:36:54 +02:00
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
svag.c
swf.c
swf.h
swfdec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
swfenc.c
takdec.c
tcp.c libavformat/tcp: fix return code for tcp_accept 2017-05-10 14:00:20 +02:00
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c
teeproto.c
thp.c
tiertexseq.c
tls_gnutls.c
tls_openssl.c
tls_schannel.c avformat/tls_schannel: log unknown error codes 2017-05-31 12:07:43 +02:00
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c
ttaenc.c
tty.c
txd.c
udp.c
uncodedframecrcenc.c avformat: do not use AVFrame accessor 2017-04-23 14:30:53 +07:00
unix.c
url.c
url.h avformat/aviobuf: add support for specifying minimum packet size and marking flush points 2017-06-24 18:51:29 +02:00
urldecode.c
urldecode.h
utils.c avformat/utils: always av_reduce r_frame_rate 2017-08-17 21:02:40 +02:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
vivo.c
voc_packet.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c movenc/isom: update vpcC box to version 1.0 of the specification 2017-05-16 01:53:05 +02:00
vpcc.h
vpk.c
vplayerdec.c
vqf.c
w64.c
w64.h
wavdec.c avformat/wavdec: Check chunk_size 2017-05-10 15:21:17 +02:00
wavenc.c
wc3movie.c lavf: use av_fourcc2str() where appropriate 2017-03-29 14:49:29 +02:00
webm_chunk.c
webmdashenc.c webmdashenc: Fix memory leak 2017-07-16 16:09:17 +01:00
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
wsddec.c
wtv_common.c
wtv.h
wtvdec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
wtvenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
wv.c
wv.h
wvdec.c Merge commit '67deba8a416d818f3d95aef0aa916589090396e2' 2017-03-31 10:40:34 +02:00
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c Fix all -Wformat warnings raised by DJGPP 2017-03-29 14:49:29 +02:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c