ffmpeg/libavformat
Michael Niedermayer 09e5e406c7 avformat/flvdec: Check double before cast in parse_keyframes_index()
Fixes: -2.21166e+304 is outside the range of representable values of type 'long'
Fixes: 29169/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5725452796821504

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-03-08 22:08:49 +01:00
..
tests
.gitignore
3dostr.c avformat/3dostr: Check sample_rate 2021-02-09 19:37:27 +01:00
4xm.c
a64.c
aacdec.c
aadec.c avformat/aadec: Replace strncpy by av_strlcpy 2021-03-05 09:16:00 +01:00
aaxdec.c
ac3dec.c
acedec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.c avformat/aiff: Deduplicate codec tags and codec tags list 2021-02-23 11:30:57 +01:00
aiff.h avformat/aiff: Deduplicate codec tags and codec tags list 2021-02-23 11:30:57 +01:00
aiffdec.c avformat/aiffdec: Check that SSND is at least 8 bytes 2021-03-03 16:54:20 +01:00
aiffenc.c avformat/aiff: Deduplicate codec tags and codec tags list 2021-02-23 11:30:57 +01:00
aixdec.c
allformats.c avformat: add TTML muxer 2021-03-05 19:45:00 +02:00
alp.c
amr.c
amvenc.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apm.c
apngdec.c
apngenc.c
aptxdec.c
aqtitledec.c
argo_asf.c
argo_asf.h
argo_brp.c
asf.c avformat/asf: Move ff_asf_audio_conceal_none to its only user 2021-02-24 08:17:50 +01:00
asf.h avformat/asf: Move ff_asf_audio_conceal_none to its only user 2021-02-24 08:17:50 +01:00
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/asf: Move ff_asf_audio_conceal_none to its only user 2021-02-24 08:17:50 +01:00
asfdec_o.c
asfenc.c avformat/asfenc: Deduplicate codec tags lists 2021-02-23 10:14:26 +01:00
assdec.c
assenc.c
ast.c avformat/ast: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
ast.h avformat/ast: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
astdec.c avformat/ast: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
astenc.c avformat/ast: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
async.c
au.c avformat/au: Deduplicate codec_tag lists 2021-02-23 10:14:26 +01:00
av1.c
av1.h
av1dec.c
avc.c
avc.h
avformat.h avformat: Deprecate AVFMT_FLAG_PRIV_OPT, remove av_demuxer_open on bump 2021-03-03 14:41:08 +01:00
avformatres.rc
avi.h
avidec.c Handle AVID MJPEG streams directly in the MJPEG decoder. 2021-02-25 11:46:28 +01:00
avienc.c avformat/avienc, wtvenc: Deduplicate codec tags list 2021-02-23 11:30:57 +01:00
avio_internal.h
avio.c avformat/avio: Use av_strstart instead of strncmp 2021-02-28 17:14:21 +01:00
avio.h
aviobuf.c
avisynth.c
avlanguage.c avformat/avlanguage: Remove long disabled av_convert_lang_to 2021-02-25 22:05:09 +01:00
avlanguage.h avformat/avlanguage: Remove long disabled av_convert_lang_to 2021-02-25 22:05:09 +01:00
avr.c
avs2dec.c
avs3dec.c
avs.c
bethsoftvid.c
bfi.c
bink.c
binka.c
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c
caf.c avformat/caf: Deduplicate codec tags list 2021-02-23 10:14:26 +01:00
caf.h avformat/caf: Deduplicate codec tags list 2021-02-23 10:14:26 +01:00
cafdec.c avformat/caf: Deduplicate codec tags list 2021-02-23 10:14:26 +01:00
cafenc.c avformat/caf: Deduplicate codec tags list 2021-02-23 10:14:26 +01:00
cavsvideodec.c
cdg.c
cdxl.c avformat/cdxl: add back options to override sample and frame rate 2021-02-05 18:11:42 +01:00
chromaprint.c
cinedec.c
codec2.c
concat.c avformat/concat: Remove unnecessary check 2021-02-27 04:27:09 +01:00
concatdec.c
crcenc.c
crypto.c
dash.c
dash.h
dashdec.c avformat/dashdec: Don't needlessly strdup metadata 2021-03-08 02:25:52 +01:00
dashenc.c
data_uri.c
dauddec.c
daudenc.c
dcstr.c avformat/dcstr: Check sample rate 2021-03-03 16:54:20 +01:00
derf.c
dfa.c
dhav.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: Clear partial_packet on error 2021-02-12 23:42:16 +01:00
epafdec.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo_test.c
fifo.c
file_open.c
file.c
filmstripdec.c
filmstripenc.c
fitsdec.c
fitsenc.c avformat/fitsenc: write DATAMIN/DATAMAX to encoded output 2021-02-10 00:03:38 +01:00
flac_picture.c
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Check double before cast in parse_keyframes_index() 2021-03-08 22:08:49 +01:00
flvenc.c
format.c
framecrcenc.c
framehash.c
frmdec.c avformat/frmdec: Simplify finding pixel format 2021-03-03 16:46:09 +01:00
fsb.c
ftp.c
fwse.c
g722.c
g723_1.c
g726.c
g729dec.c
gdv.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
hca.c
hcom.c
hdsenc.c
hevc.c
hevc.h
hevcdec.c
hls.c
hlsenc.c
hlsplaylist.c
hlsplaylist.h
hlsproto.c
hnm.c
http.c avformat/http: Fix leak when using deprecated option 2021-03-07 00:39:32 +01:00
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: Check the return from avio_get_str() 2021-02-10 12:28:29 +01:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c
ifv.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c lavf/img2dec: Autodetect pfm images. 2021-02-15 00:34:01 +01:00
img2enc.c avcodec: add initial exr image encoder 2021-02-18 13:00:40 +01:00
imx.c avformat/imx: set video stream duration 2021-02-25 23:10:14 +01:00
ingenientdec.c
internal.h avformat/mux: return a pointer to the packet in ff_interleaved_peek() 2021-02-13 13:05:26 -03:00
ip.c
ip.h
ipmovie.c
ipudec.c
ircam.c
ircam.h
ircamdec.c avformat/ircamdec: use lrintf() for rounding 2021-02-16 23:45:01 +01:00
ircamenc.c
isom_tags.c Handle AVID MJPEG streams directly in the MJPEG decoder. 2021-02-25 11:46:28 +01:00
isom.c avformat/isom: Remove outcommented function 2021-02-23 10:14:26 +01:00
isom.h
iss.c
iv8.c
ivfdec.c
ivfenc.c ivfenc: write duration for frame_cnt=1. 2021-03-03 07:22:02 -05:00
jacosubdec.c
jacosubenc.c
jvdec.c
kvag.c
latmenc.c
libamqp.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c
librtmp.c
libsmbclient.c
libsrt.c avformat/libsrt: fix race condition with libsrt_network_wait_fd and epoll 2021-02-07 19:42:22 +01:00
libssh.c
libzmq.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
luodatdec.c
lvfdec.c
lxfdec.c avformat/lxfdec: Fix multiple integer overflows related to track_size 2021-03-03 16:54:20 +01:00
m4vdec.c
Makefile avformat: add TTML muxer 2021-03-05 19:45:00 +02:00
matroska.c
matroska.h avformat/matroskadec: Add support for FlagOriginal 2021-03-02 06:54:47 +01:00
matroskadec.c avformat/matroskadec: Add support for FlagOriginal 2021-03-02 06:54:47 +01:00
matroskaenc.c avformat/matroskaenc: Add support for FlagOriginal 2021-03-02 07:04:11 +01:00
mca.c
mccdec.c avformat/mccdec: Use av_sat_add64() for fs 2021-03-03 16:54:20 +01:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c avformat/microdvddec: use 64bit for durations 2021-02-21 22:50:52 +01:00
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mods.c mobiclip: fix copyright headers 2021-03-08 19:19:19 +01:00
moflex.c mobiclip: fix copyright headers 2021-03-08 19:19:19 +01:00
mov_chan.c
mov_chan.h
mov_esds.c
mov.c avformat/mov: Extend data_size check in mov_read_udta_string() 2021-03-01 20:19:15 +01:00
movenc.c Remove double ';' 2021-03-01 06:10:44 +01:00
movenc.h
movenccenc.c avformat/movenccenc: Fix memory leak for muxing CENC-encrypted files 2021-02-27 22:09:51 +01:00
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c
mpc8.c
mpc.c
mpeg.c
mpeg.h
mpegenc.c avformat/mpegenc: Forward error code 2021-02-19 07:45:48 +01:00
mpegts.c
mpegts.h
mpegtsenc.c
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mspdec.c avformat/mspdec: Check packet_size more completely 2021-03-03 16:54:20 +01:00
mtaf.c
mtv.c
musx.c
mux.c avformat/mux: return a pointer to the packet in ff_interleaved_peek() 2021-02-13 13:05:26 -03:00
mvdec.c avformat/mvdec: Check for EOF in read_index() 2021-02-10 12:28:29 +01:00
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: add support for getting product version number metadata 2021-03-04 20:23:51 +01:00
mxfenc.c avformat/mxfenc: Discard audio until valid video has been received 2021-02-16 22:51:11 +01:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c avformat/nutdec: Check timebase count against main header length 2021-02-14 19:55:02 +01:00
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c
oggparsecelt.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c avformat/oma: Move stuff only used by demuxer to demuxer 2021-02-23 11:26:21 +01:00
oma.h avformat/oma: Move stuff only used by demuxer to demuxer 2021-02-23 11:26:21 +01:00
omadec.c avformat/oma: Move stuff only used by demuxer to demuxer 2021-02-23 11:26:21 +01:00
omaenc.c avformat/oma: Deduplicate codec tags list 2021-02-23 11:24:00 +01:00
options_table.h
options.c
os_support.c
os_support.h
paf.c avformat/paf: Check for EOF before allocation in read_header() 2021-03-08 22:08:49 +01:00
pcm.c
pcm.h
pcmdec.c avformat/pcmdec: Beautify pcm_read_header 2021-02-28 17:14:21 +01:00
pcmenc.c avformat/pcm(dec|enc): Don't include disabled (de)muxers 2021-02-28 17:14:21 +01:00
pjsdec.c
pmpdec.c
pp_bnk.c
prompeg.c
protocols.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c avformat/r3d: Check samples before computing duration 2021-02-12 23:42:16 +01:00
rawdec.c
rawdec.h
rawenc.c
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c avformat/wav: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
riff.h avformat/wav: Deduplicate codec tags lists 2021-02-23 11:30:57 +01:00
riffdec.c
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c avformat/rmdec: Check codec_length without overflow 2021-02-16 19:02:24 +01:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c avformat/rso: Deduplicate codec tags list 2021-02-23 11:24:00 +01:00
rso.h avformat/rso: Deduplicate codec tags list 2021-02-23 11:24:00 +01:00
rsodec.c avformat/rso: Deduplicate codec tags list 2021-02-23 11:24:00 +01:00
rsoenc.c avformat/rso: Deduplicate codec tags list 2021-02-23 11:24:00 +01:00
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmpdigest.c
rtmphttp.c
rtmppkt.c
rtmppkt.h
rtmpproto.c
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c
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
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_rfc4175.c
rtpdec_svq3.c
rtpdec_vc2hq.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
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
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c avformat/samidec: Sanity check pts 2021-02-10 12:28:30 +01:00
sapdec.c
sapenc.c
sauce.c
sauce.h
sbcdec.c
sbgdec.c
sccdec.c
sccenc.c
sctp.c
sdp.c
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c
segafilmenc.c
segment.c
serdec.c
sga.c lavf/sga: Silence several warnings because of wrong format specifiers. 2021-03-04 22:22:36 +01: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 avformat/spdifenc: Fix leak upon error 2021-02-27 04:27:09 +01:00
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c
svag.c
svs.c
swf.c
swf.h
swfdec.c avformat/swfdec: Check outlen before allocation 2021-03-08 22:08:49 +01:00
swfenc.c
takdec.c
tcp.c
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c
teeproto.c
thp.c
tiertexseq.c
tls_gnutls.c
tls_libtls.c
tls_mbedtls.c
tls_openssl.c
tls_schannel.c
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c
ttaenc.c
ttmlenc.c avformat: add TTML muxer 2021-03-05 19:45:00 +02:00
tty.c
txd.c
ty.c
udp.c
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c avformat: Deprecate AVFMT_FLAG_PRIV_OPT, remove av_demuxer_open on bump 2021-03-03 14:41:08 +01:00
v210.c
vag.c
vapoursynth.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h avformat: add TTML muxer 2021-03-05 19:45:00 +02:00
vividas.c
vivo.c
voc_packet.c avformat/voc_packet: Add a basic check on max_size 2021-03-01 20:19:15 +01:00
voc.c avformat/Makefile: Remove unnecessary dependencies on vocdec 2021-02-23 21:12:26 +01:00
voc.h avformat/voc: Deduplicate codec tags list 2021-02-23 11:23:29 +01:00
vocdec.c avformat/voc: Deduplicate codec tags list 2021-02-23 11:23:29 +01:00
vocenc.c avformat/voc: Deduplicate codec tags list 2021-02-23 11:23:29 +01:00
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c avformat/vpk: check that samples_per_block is > 0 2021-02-24 17:04:40 +01:00
vplayerdec.c
vqf.c
w64.c
w64.h
wavdec.c avformat/wavdec: Share wav and w64 options 2021-02-23 11:30:57 +01:00
wavenc.c avformat/wavenc: Fix leak and segfault on reallocation error 2021-02-27 04:27:09 +01:00
wc3movie.c
webm_chunk.c
webmdashenc.c avformat/webmdashenc: Use av_strstart instead of strncmp 2021-02-28 17:14:22 +01:00
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wsddec.c
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Check len in parse_chunks() to avoid overflow 2021-02-09 19:37:27 +01:00
wtvenc.c avformat/avienc, wtvenc: Deduplicate codec tags list 2021-02-23 11:30:57 +01:00
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