1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00
FFmpeg/libavformat
Michael Niedermayer 15320f8107 avformat/pjsdec: Check duration for overflow
Fixes: signed integer overflow: -3 - 9223372036854775807 cannot be represented in type 'long'
Fixes: 17828/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5645915116797952

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1efaac6932)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-11 20:18:48 +01:00
..
tests lav*,tests: remove several register_all calls 2018-04-02 03:26:22 +01:00
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c avformat/aacdec: resync to the next adts frame on invalid data instead of aborting 2019-07-23 00:46:21 -03:00
aadec.c avformat/aadec: Check for scanf() failure 2019-11-11 20:18:45 +01:00
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c
aiffenc.c
aixdec.c
allformats.c Add Sega FILM muxer 2018-04-05 22:04:30 +01:00
amr.c lavf/amr: Stricter heuristic for auto-detection. 2018-04-06 00:21:22 +02:00
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c
apngenc.c
aptxdec.c
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c
asfdec_o.c avformat/asfdec_o: Check size_bmp more fully 2018-07-16 19:02:12 +02:00
asfenc.c
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h lavf: move avpriv function definition to internal.h 2018-04-02 02:16:14 +01:00
avformatres.rc
avi.h
avidec.c avformat/avidec: Fix integer overflow in cum_len check 2018-03-10 02:44:45 +01:00
avienc.c
avio_internal.h
avio.c
avio.h
aviobuf.c avformat/aviobuf: Delay buffer downsizing until asserts are met 2019-11-11 20:18:46 +01:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c
bintext.c avformat/bintext: Reduce detection for random .bin files as it more likely is not a multimedia related file 2018-06-15 22:31:13 +02:00
bit.c
bluray.c lavf/bluray: translate a read of 0 to EOF 2018-05-10 17:59:55 +03:00
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 2019-11-11 20:18:47 +01:00
chromaprint.c
cinedec.c
codec2.c
concat.c
concatdec.c avformat/concatdec: only set output stream index before returning packet 2018-04-02 20:41:53 +02:00
crcenc.c
crypto.c
cutils.c
dash.c
dash.h
dashdec.c avformat/dashdec: Fix strlen(rep_id_val) with it being NULL 2018-10-07 21:34:00 +02:00
dashenc.c lavf/dashenc: don't call flush_init_segment before avformat_write_header 2018-05-04 13:38:18 +05:30
data_uri.c
dauddec.c
daudenc.c
dcstr.c
dfa.c
diracdec.c
dnxhddec.c
dsfdec.c avformat/dsfdec: fix calculation of size of data chunk 2018-12-19 10:23:55 +01:00
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 2019-11-11 20:18:47 +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
flac_picture.c
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c avformat/flacenc: add flac_init() 2018-04-16 14:12:48 -03:00
flacenc.h
flic.c
flv.h
flvdec.c
flvenc.c avformat/flvenc: Check audio packet size 2018-10-07 21:34:00 +02:00
format.c lavf/format: use const AVInputFormat for iteration 2018-04-02 03:26:22 +01:00
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-21 10:42:52 +01:00
g722.c
g723_1.c
g726.c
g729dec.c
gdv.c avformat/gdv: Check fps 2019-03-21 10:42:52 +01: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
hevc.c
hevc.h
hevcdec.c
hls.c lavf/hls: use ff_get_chomp_line 2018-04-12 16:04:58 +08:00
hlsenc.c avformat/hlsenc: avformat/hlsenc: add error message for encrypt fmp4 mode 2018-04-16 14:35:14 +08:00
hlsplaylist.c
hlsplaylist.h
hlsproto.c lavf/hlsproto: use ff_get_chomp_line 2018-04-12 16:04:58 +08:00
hnm.c
http.c avformat/http: Fix Out-of-Bounds access in process_line() 2019-03-21 10:42:52 +01:00
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c avformat/icodec: Free ico->images on error paths 2019-11-11 20:18:46 +01:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c lavf/id3v2: fail read_apic on EOF reading mimetype 2019-03-21 10:42:51 +01:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c lavf/img2dec: use new iteration API 2018-04-02 03:26:22 +01:00
img2enc.c
ingenientdec.c
internal.h lavf/aviobuf: add ff_get_chomp_line 2018-04-12 16:04:58 +08:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c
isom.h avformat/mov.c: require tfhd to begin parsing trun 2019-03-21 10:42:51 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c Merge commit '44a1731011e87fbf4180d026aefb8bfe85d8c7dc' 2018-03-28 15:46:59 -03:00
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c avformat/libopenmpt: Fix successfull typo 2019-03-21 10:42:51 +01:00
librtmp.c avformat/librtmp: fix returning EOF from Read/Write 2018-07-28 01:11:30 +02:00
libsmbclient.c lavf/libsmbclient: return AVERROR_EOF for EOF. 2018-09-02 18:42:47 +02:00
libsrt.c Merge commit 'a2fc8dbae85339d1b418d296f2982b6c04c53c57' 2018-03-29 21:56:19 -03:00
libssh.c lavf/libssh: translate a read of 0 to EOF 2018-05-28 20:34:53 +03:00
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c avformat/m4vdec: Use the same constant names as libavcodec 2018-06-15 22:31:13 +02:00
Makefile Add Sega FILM muxer 2018-04-05 22:04:30 +01:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Do not leak queued packets on sync errors 2019-03-21 10:42:52 +01:00
matroskaenc.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c avformat/mlvdec: read_string() received unsigned size, make the argument unsigned 2018-10-07 21:34:00 +02:00
mm.c
mmf.c
mms.c avformat/mms: Add missing chunksize check 2018-07-16 19:02:12 +02:00
mms.h
mmsh.c
mmst.c
mov_chan.c
mov_chan.h
mov_esds.c
mov.c avformat/mov: Check for EOF in mov_read_meta() 2019-11-11 20:18:47 +01:00
movenc.c avformat/movenc: Write version 2 of audio atom if channels is not known 2018-07-16 19:02:12 +02:00
movenc.h avformat/movenc: support writing iTunes cover image 2018-04-17 20:13:37 +01:00
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c avformat/mp3enc: Avoid SEEK_END as it is unsupported 2019-11-11 20:18:45 +01:00
mpc8.c avformat/mpc8: do not return error on stream end 2018-03-29 20:46:36 +02:00
mpc.c avformat/mpc: deallocate frames array on errors 2019-11-11 20:18:46 +01:00
mpeg.c avformat/mpeg: add missing check 2018-04-01 21:08:16 +02:00
mpeg.h
mpegenc.c
mpegts.c avformat/mpegts: Fix side data type for stream id 2019-03-21 10:42:51 +01:00
mpegts.h
mpegtsenc.c
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c avformat/mpsubdec: Clear queue on error 2019-11-11 20:18:47 +01:00
msf.c
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Fix av_log context 2018-07-16 19:02:12 +02:00
mxfenc.c
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c avformat/nsvdec: Do not parse multiple NSVf 2018-10-07 21:34:00 +02:00
nullenc.c
nut.c
nut.h
nutdec.c
nutenc.c avformat/nutenc: Document trailer index assert better 2019-03-21 10:42:51 +01:00
nuv.c
oggdec.c
oggdec.h
oggenc.c
oggparsecelt.c
oggparsedaala.c avformat/oggparsedaala: Do not adjust AV_NOPTS_VALUE 2018-03-10 02:44:45 +01:00
oggparsedirac.c
oggparseflac.c
oggparseogm.c avformat/oggparseogm: Check lb against psize 2018-03-10 02:44:45 +01:00
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c avformat/oggparsetheora: Do not adjust AV_NOPTS_VALUE 2018-03-10 02:44:45 +01:00
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c
omaenc.c
options_table.h avformat/options_table: Change the seek2any location in opt table. 2018-04-02 23:27:51 +02:00
options.c
os_support.c
os_support.h
paf.c
pcm.c avformat/pcm: decrease delay when reading PCM streams. 2018-03-13 01:34:42 +01:00
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c avformat/pjsdec: Check duration for overflow 2019-11-11 20:18:48 +01:00
pmpdec.c
prompeg.c
protocols.c Merge commit 'a2fc8dbae85339d1b418d296f2982b6c04c53c57' 2018-03-29 21:56:19 -03:00
psxstr.c
pva.c avformat/pva: Check for EOF before retrying in read_part_of_packet() 2018-07-16 19:02:12 +02:00
pvfdec.c
qcp.c
qtpalette.c avformat/qtpalette: parse color table according to the QuickTime file format specs 2018-05-01 21:21:49 +02:00
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:59:23 -03:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c avformat/realtextdec: free queue on error 2019-11-11 20:18:47 +01:00
redspark.c
replaygain.c
replaygain.h
riff.c
riff.h
riffdec.c
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c avformat/rmdec: Fix EOF check in the stream loop in ivr_read_header() 2018-10-07 21:34:00 +02:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
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 avformat/rtpenc_chain: use the proper function to free AVFormatContext 2018-03-26 00:52:39 -03:00
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-21 10:42:51 +01:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbcdec.c sbc: add raw demuxer for SBC 2018-03-07 22:26:53 +01:00
sbgdec.c avformat/sbgdec: Fixes integer overflow in str_to_time() with hours 2019-11-11 20:18:45 +01:00
sccdec.c
sccenc.c
sctp.c
sdp.c
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c avformat/segafilm - revert keyframe detection 2018-04-22 16:34:39 -03:00
segafilmenc.c lavf/segafilmenc: Do not mix variable declaration and code. 2018-04-10 00:50:01 +02:00
segment.c
shortendec.c avformat/shortendec: Check k in probe 2019-11-11 20:18:48 +01: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 spdifenc: support ac3 core+eac3 dependent streams 2018-04-11 11:37:05 +02:00
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() 2019-11-11 20:18:47 +01:00
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c
svag.c
swf.c
swf.h
swfdec.c
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_openssl.c
tls_schannel.c avformat/tls_schannel: fix handling of EOF after avio changes 2018-04-19 13:27:49 +02:00
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c
ttaenc.c avformat/ttaenc: use AVPacketList helper functions to queue packets 2018-04-04 00:15:38 -03:00
tty.c
txd.c
ty.c
udp.c
uncodedframecrcenc.c
unix.c avformat/unix: fix handling of EOF in case of SOCK_STREAM. 2018-03-21 19:02:06 +01:00
url.c
url.h
urldecode.c
urldecode.h
utils.c avformat/utils: Check rfps_duration_sum for overflow 2019-11-11 20:18:46 +01:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h Bump minor versions for branching release/4.0 2018-04-16 12:35:12 +02: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 2019-11-11 20:18:45 +01:00
vplayerdec.c
vqf.c avformat/vqf: Check header_size 2019-11-11 20:18:46 +01:00
w64.c
w64.h
wavdec.c lafv/wavdec: Fail bext parsing on incomplete reads 2019-11-11 20:18:46 +01:00
wavenc.c
wc3movie.c
webm_chunk.c avformat/webm_chunk: Specify expected argument length of get_chunk_filename() 2019-11-11 20:18:45 +01:00
webmdashenc.c avformat/webmdashenc: Check id in adaption_sets 2019-03-21 10:42:52 +01:00
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wsddec.c avformat/wsddec: Fix undefined shift 2019-11-11 20:18:46 +01:00
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Avoid (32bit signed) sectors 2019-11-11 20:18:45 +01:00
wtvenc.c
wv.c
wv.h
wvdec.c avformat/wvdec: detect and error out on WavPack DSD files 2019-03-21 10:42:51 +01:00
wvedec.c
wvenc.c
xa.c
xmv.c avformat/xmv: Make bitrate 64bit 2019-11-11 20:18:46 +01:00
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c