ffmpeg/libavformat
Dale Curtis baa0304074 avformat/utils: Fix undefined behavior in ff_configure_buffers_for_index()
When e2_pts == INT64_MIN and e1_pts >= 0 the calculation of
e2_pts - e1_pts will overflow an int64_t.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f15007afa9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-01 12:49:26 +02:00
..
tests avformat/tests/fifo_muxer: includes libavformat/network.h to define ETIMEDOUT for fate build. 2017-05-16 04:00:30 +02:00
.gitignore
3dostr.c
4xm.c
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 avformat/aadec: Check for scanf() failure 2019-05-09 11:18:13 +02:00
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h
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 avformat/apng: fix setting frame delay when max_fps is set to no limit 2017-03-21 20:22:12 -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/asfdec: Fix DoS in asf_build_simple_index() 2017-09-17 12:21:32 +02:00
asfdec_o.c avformat/asfdec_o: Check size_bmp more fully 2018-08-08 01:37:20 -03:00
asfenc.c
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 avformat: Add max_streams option 2016-12-11 00:21:53 +01:00
avformatres.rc
avi.h
avidec.c avformat/avidec: Fix integer overflow in cum_len check 2018-07-08 19:45:45 +02:00
avienc.c
avio_internal.h
avio.c
avio.h
aviobuf.c avformat/aviobuf: Fix signed integer overflow in avio_seek() 2017-09-17 12:21:32 +02:00
avisynth.c avisynth: fix Planar RGB output 2016-10-27 17:24:04 +02:00
avlanguage.c
avlanguage.h
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 avformat/cdxl: Fix integer overflow in intermediate 2020-07-01 12:49:26 +02:00
chromaprint.c lavf/chromaprint: Update for version 1.4 2017-01-15 11:53:41 +01:00
cinedec.c avformat/cinedec: Fix DoS due to lack of eof check 2017-09-17 12:21:32 +02:00
concat.c
concatdec.c avformat/concatdec: fix the h264 annexb extradata check 2017-05-11 21:12:12 -03: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
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c avformat/electronicarts: If no packet has been read at the end do not treat it as if theres a packet 2020-07-01 12:49:26 +02:00
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_open.c
file.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 lavf/flacdec: Return maximum score if the streaminfo header is valid. 2017-03-30 01:41:22 +02:00
flacenc_header.c
flacenc.c
flacenc.h
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: Check audio packet size 2018-11-18 02:20:44 +01:00
format.c
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c avformat/ftp: Fix Out-of-Bounds Access and Information Leak in ftp.c:393 2019-03-24 10:39:03 +01:00
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 avformat/hvcc: zero initialize the nal buffers past the last written byte 2018-02-24 00:37:41 -03:00
hevc.h
hevcdec.c
hls.c avformat/hls: Fix DoS due to infinite loop 2017-09-17 12:21:32 +02:00
hlsenc.c lavf: fix typos 2016-10-09 20:09:00 +02:00
hlsproto.c
hnm.c
http.c avformat/http: Fix Out-of-Bounds access in process_line() 2019-03-24 10:39:03 +01: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 avformat/icodec: Free ico->images on error paths 2020-07-01 12:11:55 +02:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c lavf/id3v2: fail read_apic on EOF reading mimetype 2019-01-15 00:57:27 +01: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_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c lavf/img2dec: Skip DQT segment when auto-detecting jpg. 2016-09-03 13:38:16 +02:00
img2enc.c
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 avformat/mov.c: require tfhd to begin parsing trun 2019-03-24 10:39:03 +01: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
libgme.c
libmodplug.c
libnut.c
libopenmpt.c avformat/libopenmpt: Check for avio_size() failure 2017-05-14 12:20:15 +02:00
librtmp.c
libsmbclient.c
libssh.c avformat/libssh: check the user provided a password before trying to use it 2018-01-11 10:37:11 -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-07-08 13:07:06 +02:00
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile avformat/fifo: Add fate test 2016-08-22 22:07:48 +02:00
matroska.c
matroska.h avformat/matroskadec: support parsing Chroma Location elements 2016-10-18 20:39:07 -03:00
matroskadec.c avformat/matroskadec: Fix default value of BlockAddID 2020-04-03 22:25:16 +02:00
matroskaenc.c avformat/matroskaenc: don't write DisplayUnit with value Unknown on WebM files 2017-02-21 21:18:07 -03:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c avformat/mlvdec: read_string() received unsigned size, make the argument unsigned 2018-11-18 02:20:44 +01:00
mm.c
mmf.c
mms.c avformat/mms: Add missing chunksize check 2018-07-08 19:45:47 +02:00
mms.h
mmsh.c
mmst.c
mov_chan.c
mov_chan.h
mov.c avformat/mov: Check STCO location 2020-07-01 12:49:26 +02:00
movenc.c avformat/movenc: Write version 2 of audio atom if channels is not known 2018-07-18 16:57:03 +02: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 avformat/mp3dec: Check that the frame fits within the probe buffer 2020-07-01 12:49:26 +02:00
mp3enc.c avformat/mp3enc: Avoid SEEK_END as it is unsupported 2020-07-01 12:11:55 +02:00
mpc8.c
mpc.c avformat/mpc: deallocate frames array on errors 2020-07-01 12:11:55 +02:00
mpeg.c lavf/mpeg: Initialize a stack variable used by memcmp(). 2017-02-21 02:16:13 +01:00
mpeg.h
mpegenc.c
mpegts.c avformat/mpegts: Fix side data type for stream id 2019-01-15 00:57:27 +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 avformat/mpsubdec: Clear queue on error 2020-07-01 12:49:26 +02:00
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 avformat/mux: Fix copy an paste typo 2017-06-16 01:05:27 +02:00
mvdec.c avformat/mvdec: Fix DoS due to lack of eof check 2017-09-17 12:21:32 +02:00
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Clear metadata_sets_count in mxf_read_close() 2020-07-01 12:49:26 +02: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 avformat/nsvdec: Do not parse multiple NSVf 2018-11-18 02:20:44 +01:00
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 avformat/nutenc: Do not pass NULL to memcmp() in get_needed_flags() 2020-07-01 12:49:26 +02:00
nuv.c
oggdec.c Close ogg stream upon error when using AV_EF_EXPLODE. 2018-01-08 23:19:14 +01:00
oggdec.h
oggenc.c
oggparsecelt.c avformat/oggparsecelt: Do not re-allocate os->private 2017-07-26 00:14:57 +02:00
oggparsedaala.c avformat/oggparsedaala: Do not adjust AV_NOPTS_VALUE 2018-07-08 19:45:45 +02:00
oggparsedirac.c
oggparseflac.c
oggparseogm.c avformat/oggparseogm: Check lb against psize 2018-07-08 19:45:45 +02:00
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 avformat/oggparsetheora: Do not adjust AV_NOPTS_VALUE 2018-07-08 19:45:45 +02:00
oggparsevorbis.c libavformat/oggparsevorbis: Fix memleak on multiple headers 2018-07-08 19:45:45 +02:00
oggparsevp8.c Don't manipulate duration when it's AV_NOPTS_VALUE. 2018-01-08 23:19:14 +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-01-26 00:34:12 +01:00
options.c avformat/options: log filename on open 2017-06-16 01:05:29 +02:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c avformat/pjsdec: Check duration for overflow 2020-07-01 12:49:26 +02:00
pmpdec.c
protocols.c
psxstr.c
pva.c avformat/pva: Check for EOF before retrying in read_part_of_packet() 2018-07-08 19:45:47 +02:00
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c
rawdec.h
rawenc.c lavf/rawenc: Only accept the appropriate stream type for raw muxers. 2019-09-06 18:57:57 -03:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c avformat/realtextdec: free queue on error 2020-07-01 12:11:55 +02:00
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 asfdec: Account for different Format Data sizes 2018-08-08 01:33:27 -03:00
riffdec.c asfdec: Account for different Format Data sizes 2018-08-08 01:33:27 -03:00
riffenc.c lavf/riffenc: Always write unexpected channel_mask. 2016-10-12 12:34:48 +02:00
rl2.c avformat/rl2: Fix DoS due to lack of eof check 2017-09-17 12:21:32 +02:00
rm.c
rm.h
rmdec.c avformat/rmdec: Initialize and sanity check offset in ivr_read_header() 2020-07-01 12:49:26 +02: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
rtmppkt.c avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2 2017-07-29 14:17:57 +02: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_ac3.c
rtpdec_amr.c
rtpdec_asf.c
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_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c avformat/rtpdec_h264: Fix heap-buffer-overflow 2017-09-17 12:21:32 +02:00
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
rtpdec.c lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02: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
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c avformat/rtsp: Check number of streams in sdp_parse_line() 2019-03-24 10:39:03 +01:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c avformat/sbgdec: Fixes integer overflow in str_to_time() with hours 2020-07-01 12:11:55 +02:00
sctp.c
sdp.c
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 avformat/shortendec: Check k in probe 2020-07-01 12:49:26 +02:00
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
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c avformat/subtitles: Check nb_subs in ff_subtitles_queue_finalize() 2020-07-01 12:49:26 +02:00
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
tcp.c
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c avformat/tee: Copy interrupt callback and flags to slave 2016-09-29 17:17:26 +02:00
teeproto.c
thp.c
tiertexseq.c
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
tls.c
tls.h
tmv.c
tta.c
ttaenc.c
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: Fix undefined behavior in ff_configure_buffers_for_index() 2020-07-01 12:49:26 +02:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h avformat: Add max_streams option 2016-12-11 00:21:53 +01:00
vivo.c
voc_packet.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c avformat/vpk: Check offset for validity 2020-07-01 12:11:55 +02:00
vplayerdec.c
vqf.c avformat/vqf: Check header_size 2020-07-01 12:11:55 +02:00
w64.c
w64.h
wavdec.c lafv/wavdec: Fail bext parsing on incomplete reads 2020-07-01 12:11:55 +02:00
wavenc.c
wc3movie.c
webm_chunk.c avformat/webm_chunk: Specify expected argument length of get_chunk_filename() 2020-07-01 12:11:55 +02:00
webmdashenc.c avformat/webmdashenc: Check id in adaption_sets 2019-03-24 10:39:03 +01:00
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 avformat/wsddec: Fix undefined shift 2020-07-01 12:11:55 +02:00
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Avoid (32bit signed) sectors 2020-07-01 12:11:55 +02:00
wtvenc.c
wv.c
wv.h
wvdec.c avformat/wvdec: detect and error out on WavPack DSD files 2019-01-15 00:57:27 +01:00
wvedec.c
wvenc.c
xa.c
xmv.c avformat/xmv: Make bitrate 64bit 2020-07-01 12:11:55 +02:00
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c