1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavformat
Michael Niedermayer 30d40580c4 avformat/mov: Fix integer overflows related to sample_duration
Fixes: runtime error: signed integer overflow: -9166684017437101870 + -2495066639299164439 cannot be represented in type

Fixes: Chromium bug 791349

Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2f37082827)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-10-23 01:44:40 +02:00
..
3dostr.c
4xm.c
a64.c
aacdec.c
aadec.c
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c lavf/adxdec: Add Autodetection. 2016-02-01 10:51:46 +01:00
aea.c
afc.c
aiff.h
aiffdec.c
aiffenc.c
allformats.c avformat/allformats: Making av_register_all() thread-safe. 2016-08-13 13:08:57 +02:00
amr.c
anm.c
apc.c
ape.c ape: Show more information for loglevel verbose. 2016-01-19 11:02:14 +01:00
apetag.c
apetag.h
apngdec.c avformat/apng: fix setting frame delay when max_fps is set to no limit 2017-03-21 20:21:41 -03:00
apngenc.c
aqtitledec.c
asf.c lavf/asfenc: add support for storing languages 2016-02-05 21:32:14 +01:00
asf.h lavf/asfenc: add support for setting packet size 2016-02-05 21:32:14 +01:00
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/asfdec: Fix DoS in asf_build_simple_index() 2017-09-08 18:37:40 +02:00
asfdec_o.c Merge commit '066281372d90d63ca021b659abcb8faefd6bc4a6' 2016-01-19 08:47:48 +01:00
asfenc.c avformat/asfenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h avformat: Add max_streams option 2016-12-10 22:42:03 +01:00
avformatres.rc
avi.h
avidec.c avformat/avidec: Fix integer overflow in cum_len check 2018-10-23 01:44:40 +02:00
avienc.c
avio_internal.h avformat: add protocol_whitelist 2016-02-02 03:39:34 +01:00
avio.c avformat: add protocol_whitelist 2016-02-02 03:39:34 +01:00
avio.h avformat: add protocol_whitelist 2016-02-02 03:39:34 +01:00
aviobuf.c avformat/aviobuf: Fix signed integer overflow in avio_seek() 2017-08-24 12:08:06 +02:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c brstm: fix missing closing brace 2016-01-04 13:44:16 +01:00
c93.c
cache.c avformat/cache: Fix memleak of tree entries 2016-03-26 21:52:47 +01:00
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c avformat/cinedec: Fix DoS due to lack of eof check 2017-08-28 01:42:23 +02:00
concat.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
concatdec.c avformat/concatdec: fix the h264 annexb extradata check 2017-05-17 16:57:38 -03:00
crcenc.c
crypto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
cutils.c
dashenc.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c dcstr: fix division by zero 2016-11-27 00:38:58 +01:00
dfa.c avformat/dfa: Fix packet leak on error 2016-01-11 17:16:18 +01:00
diracdec.c
dnxhddec.c libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats 2016-02-14 19:17:36 +01:00
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c
dv.c
dv.h
dvbsub.c
dvenc.c avformat/dvenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c avformat/ffmdec: Check media type for chunks 2016-12-04 20:25:15 +01:00
ffmenc.c avformat/ffmenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
ffmeta.h
ffmetadec.c
ffmetaenc.c
file_open.c
file.c avformat/file: Add crypto to default whitelist 2016-03-26 21:52:47 +01:00
filmstripdec.c filmstripdec: correctly check image dimensions 2016-11-27 00:38:57 +01:00
filmstripenc.c
flac_picture.c
flac_picture.h
flacdec.c avformat/flacdec: Check avio_read result when reading flac block header. 2017-02-03 15:59:14 +01:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Accept last size if its off by 1 2016-08-13 13:08:57 +02:00
flvenc.c avformat/flvenc: copyts in FLV muxer 2016-01-26 20:56:55 +01:00
format.c avformat/format: Fix registering a format more than once and related races 2016-08-13 13:08:57 +02:00
framecrcenc.c
framehash.c
frmdec.c remove all uses of the deprecated avpicture_get_size() function 2016-01-17 12:01:35 +01:00
fsb.c
ftp.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
g722.c
g723_1.c
g729dec.c
genh.c avformat/genh: Mark coef_splitted as av_unused 2016-02-14 21:05:50 +01:00
gif.c
gifdec.c
golomb_tab.c
gopher.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
gsmdec.c
gxf.c
gxf.h
gxfenc.c avformat/gxfenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
h261dec.c
h263dec.c
h264dec.c
hdsenc.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
hevc.c avformat/hvcc: zero initialize the nal buffers past the last written byte 2018-02-24 00:37:13 -03:00
hevc.h
hevcdec.c
hls.c avformat/hls: Fix DoS due to infinite loop 2017-08-28 01:41:36 +02:00
hlsenc.c avformat/hlsenc: Fix passing options, regression since bc9a5965c8 2016-03-26 21:52:47 +01:00
hlsproto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
hnm.c
http.c avformat/http: Check for truncated buffers in http_connect() 2017-05-17 20:35:19 +02:00
http.h
httpauth.c
httpauth.h
icecast.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
icodec.c avformat/icodec: Fix crash probing fuzzed file 2016-11-27 00:38:58 +01:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c avformat/idroqdec: Check chunk_size for being too large 2016-12-04 20:25:15 +01:00
idroqenc.c
iff.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h avformat/img2dec: do not interpret the filename by default if a IO context has been opened 2016-01-20 17:31:01 +01:00
img2dec.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
img2enc.c avformat/img2enc: remove unused variable 2016-02-14 21:30:53 +01:00
ingenientdec.c
internal.h avformat/utils: remove ff_iso8601_to_unix_time 2016-02-14 01:51:14 +01:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c lavf/isom: Add more code points for H264. 2016-02-04 17:40:06 +01:00
isom.h mov: Add an option to toggle dref opening 2016-01-21 14:32:39 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c avformat/ivfenc: fix division by zero 2016-01-08 23:27:10 +01:00
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c
libavformat.v
libgme.c
libmodplug.c
libnut.c
librtmp.c librtmp: Avoid an infiniloop setting connection arguments 2016-07-26 12:07:55 -07:00
libsmbclient.c
libssh.c avformat/libssh: check the user provided a password before trying to use it 2018-01-11 10:41:31 -03:00
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c avformat/lrcdec: Fix memory leak in lrc_read_header() 2018-02-19 02:40:54 +01:00
lrcenc.c
lvfdec.c
lxfdec.c Merge commit '69a68593ce5684409c3c4dd9a901bfd8b16925b1' 2016-01-02 13:20:13 +01:00
m4vdec.c
Makefile avformat: Remove support for libquvi 2016-01-24 16:01:04 +00:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Fix float-cast-overflow undefined behavior in matroska_parse_tracks() 2018-02-19 02:40:54 +01:00
matroskaenc.c avformat/matroskaenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
md5enc.c
md5proto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
mov_chan.c
mov_chan.h
mov.c avformat/mov: Fix integer overflows related to sample_duration 2018-10-23 01:44:40 +02:00
movenc-test.c Merge commit '9cce011b1d2f66366f5d75a024c2a2f93dc2b589' 2016-01-27 16:57:24 +00:00
movenc.c avformat/movenc: Check packet in mov_write_single_packet() too 2016-09-28 17:11:52 +02:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c avformat/mp3dec: Increase probe score slightly when the whole data from begin to end is mp3 2016-08-13 13:08:57 +02:00
mp3enc.c avformat/mp3enc: Assert that the header we assembled is valid 2016-02-07 01:12:48 +01:00
mpc8.c
mpc.c
mpeg.c lavf/mpeg: Initialize a stack variable used by memcmp(). 2017-02-21 02:16:23 +01:00
mpeg.h
mpegenc.c
mpegts.c mpegts: prevent division by zero 2016-11-27 00:38:56 +01:00
mpegts.h
mpegtsenc.c avformat/mpegtsenc: Fix used service 2016-03-26 21:52:48 +01:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c lavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame 2016-02-14 13:48:33 +01:00
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mtv.c
mux.c avformat/mux: Fix copy an paste typo 2017-05-27 04:22:52 +02:00
mvdec.c avformat/mvdec: Fix DoS due to lack of eof check 2017-08-28 01:43:28 +02:00
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Fix Sign error in mxf_read_primer_pack() 2017-09-01 03:20:53 +02:00
mxfenc.c avformat/mxfenc: use ff_parse_creation_time_metadata 2016-02-14 01:51:14 +01:00
mxg.c
ncdec.c
network.c libavformat/network: use defined constant in poll 2016-01-29 21:31:47 +01:00
network.h
nistspheredec.c
noproxy-test.c
nsvdec.c avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop. 2017-09-01 03:03:44 +02:00
nullenc.c
nut.c nut: Add PAL8 support 2016-02-09 19:19:43 +01:00
nut.h
nutdec.c nutdec: only copy the header if it exists 2016-01-13 09:44:44 +01:00
nutenc.c avformat/nutenc: implement deinit() 2016-01-21 13:16:24 +01:00
nuv.c nuv: sanitize negative fps rate 2016-01-13 09:37:11 +01:00
oggdec.c Close ogg stream upon error when using AV_EF_EXPLODE. 2017-12-02 00:28:59 +01:00
oggdec.h avformat/oggdec: Fix integer overflow with invalid pts 2016-08-13 13:08:57 +02:00
oggenc.c
oggparsecelt.c avformat/oggparsecelt: Do not re-allocate os->private 2017-07-26 00:15:38 +02:00
oggparsedaala.c avformat/oggparsedaala: Do not adjust AV_NOPTS_VALUE 2018-10-23 01:44:40 +02:00
oggparsedirac.c
oggparseflac.c
oggparseogm.c avformat/oggparseogm: Check lb against psize 2018-10-23 01:44:40 +02:00
oggparseopus.c avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c 2016-06-05 02:40:31 +02:00
oggparseskeleton.c
oggparsespeex.c avformat/oggparsespeex: Check frames_per_packet and packet_size 2016-12-04 20:25:15 +01:00
oggparsetheora.c avformat/oggparsetheora: Do not adjust AV_NOPTS_VALUE 2018-10-23 01:44:40 +02:00
oggparsevorbis.c libavformat/oggparsevorbis: Fix memleak on multiple headers 2018-10-23 01:44:40 +02:00
oggparsevp8.c Don't manipulate duration when it's AV_NOPTS_VALUE. 2017-12-02 00:28:59 +01:00
oma.c
oma.h
omadec.c
omaenc.c
options_table.h avformat/options_table: Set the default maximum number of streams to 1000 2017-02-03 15:59:14 +01:00
options.c avformat/options: log filename on open 2017-06-04 14:11:39 +02:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c qtpalette: make the color_* variables unsigned again 2016-01-11 23:14:52 +01:00
qtpalette.h lavf/qtpalette: Fix incorrect palettes 2016-01-19 11:18:32 +01:00
r3d.c Merge commit '6bf4c1d71199b92894f24db6386ed5070e590a16' 2016-01-01 15:59:30 +01:00
rawdec.c
rawdec.h
rawenc.c avformat: add vc2 as an allowed rawenc Dirac extension 2016-02-10 17:15:59 +00:00
rawenc.h
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c avcodec: Cineform HD Decoder 2016-01-30 17:44:13 +00:00
riff.h
riffdec.c riffdec: Explicitly null-terminate array to work around VC++ bug 2016-02-01 10:41:56 +01:00
riffenc.c Revert "Merge commit '9f1eccb97bf8894cb18b14f642500686505ef186'" 2016-01-01 17:05:46 +01:00
rl2.c avformat/rl2: Fix DoS due to lack of eof check 2017-08-28 01:43:03 +02:00
rm.c
rm.h
rmdec.c avformat/rmdec: Fix DoS due to lack of eof check 2017-08-28 01:42:34 +02:00
rmenc.c Merge commit '1f008f34d5b2b5f6217521747e7acfe3efc0e666' 2016-01-01 15:51:58 +01:00
rmsipr.c
rmsipr.h
rpl.c
rsd.c rsd: limit number of channels 2016-11-27 00:38:58 +01:00
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
rtmpcrypt.h
rtmpdh.c rtmpdh: Initialize gcrypt before using it 2016-01-12 00:56:02 +01:00
rtmpdh.h
rtmphttp.c
rtmppkt.c avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2 2017-07-29 14:17:58 +02:00
rtmppkt.h
rtmpproto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c libavformat/rtpdec_asf: zero initialize the AVIOContext struct 2016-08-13 13:08:57 +02:00
rtpdec_dv.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c
rtpdec_hevc.c Merge commit '69a68593ce5684409c3c4dd9a901bfd8b16925b1' 2016-01-02 13:20:13 +01:00
rtpdec_ilbc.c
rtpdec_jpeg.c avformat/rtpdec_jpeg: fix low contrast image on low quality setting 2016-03-26 21:52:48 +01:00
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_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpdec.c
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 avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vp8.c
rtpenc_xiph.c
rtpenc.c avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT 2016-03-26 21:52:47 +01:00
rtpenc.h
rtpproto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
rtpproto.h
rtsp.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
rtsp.h
rtspcodes.h
rtspdec.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
rtspenc.c
samidec.c
sapdec.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
sapenc.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
sauce.c
sauce.h
sbgdec.c sbgdec: prevent NULL pointer access 2016-11-27 00:38:57 +01:00
sctp.c
sdp.c
sdr2.c
seek-test.c
segafilm.c
segment.c avformat/segment: Fix header_filename handling 2016-02-10 17:59:58 +01:00
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c lavf/spdifenc: Support MLP encapsulation. 2016-02-14 18:02:22 +01:00
srtdec.c lavf/srtdec: rewrite parsing logic 2016-01-01 18:31:49 +01:00
srtenc.c
srtp.c
srtp.h
srtpproto.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
stldec.c
subfile.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
svag.c avformat/svag: fix division by zero 2016-03-28 19:10:34 -03:00
swf.c
swf.h Merge commit '7570c9e04f010c9b3bfdeb4338d330f2cdd25278' 2016-01-19 08:58:55 +01:00
swfdec.c avformat/swfdec: Fix inflate() error code check 2016-09-05 01:01:35 +02:00
swfenc.c
takdec.c
tcp.c libavformat/tcp.c : add send_buffer_size and recv_buffer_size options 2016-01-22 15:36:30 +01:00
tedcaptionsdec.c
tee.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
thp.c
tiertexseq.c
tls_gnutls.c
tls_openssl.c
tls_schannel.c avformat: add windows.h to SChannel SSP TLS code 2016-02-02 16:19:25 +01:00
tls_securetransport.c avformat/tls_securetransport: Add missing include 2016-02-02 16:14:37 +01:00
tls.c Update demuxers and protocols for protocol whitelist support 2016-02-02 04:16:50 +01:00
tls.h
tmv.c
tta.c
tty.c
txd.c
udp.c
uncodedframecrcenc.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
unix.c
url-test.c
url.c
url.h avformat: add protocol_whitelist 2016-02-02 03:39:34 +01:00
urldecode.c
urldecode.h
utils.c avformat/utils: Fix integer overflow of fps_first/last_dts 2018-10-23 01:44:40 +02:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
vivo.c
voc.c
voc.h
vocdec.c Merge commit '2d0432d918a71468419b7ac1e543ab3b399d3d37' 2016-01-01 17:14:46 +01:00
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpk.c
vplayerdec.c
vqf.c lavf/vqf: fix suported/supported typo 2016-01-30 13:08:37 +01:00
w64.c
w64.h
wavdec.c avformat/wavdec: Check chunk_size 2017-05-17 20:35:20 +02:00
wavenc.c
wc3movie.c
webm_chunk.c Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610' 2016-02-10 14:42:41 +00:00
webmdashenc.c avformat/webmdashenc: Validate the 'streams' adaptation sets parameter 2017-05-17 20:35:19 +02:00
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Check pointer before use 2016-09-05 01:01:35 +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 avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00