1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavformat
Michael Niedermayer c6eb3f1d9b
avformat/rtmppkt: Simplify and deobfuscate amf_tag_skip() slightly
Found while reviewing: CID1530313 Untrusted loop bound

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cedbef0394)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-07-21 21:41:43 +02:00
..
tests
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c
aadec.c
aaxdec.c
ac3dec.c
acedec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.c
aiff.h
aiffdec.c
aiffenc.c
aixdec.c
allformats.c
alp.c
amr.c
amvenc.c
anm.c
apc.c
ape.c avformat/ape: Use 64bit for final frame size 2024-06-15 23:32:53 +02:00
apetag.c
apetag.h
apm.c
apngdec.c
apngenc.c
aptxdec.c
aqtitledec.c
argo_asf.c avformat/argo_asf: Use 64bit in offset intermediate 2024-06-15 23:32:53 +02:00
argo_asf.h
argo_brp.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/asfdec_f: Use 64bit for preroll computation 2024-06-15 23:32:54 +02:00
asfdec_o.c
asfenc.c
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c
au.c
av1.c
av1.h
av1dec.c
avc.c
avc.h
avformat.h
avformatres.rc
avi.h
avidec.c
avienc.c
avio_internal.h
avio.c
avio.h
aviobuf.c
avisynth.c
avlanguage.c
avlanguage.h
avr.c avformat/avr: Check sample rate 2023-12-21 22:43:46 +01:00
avs2dec.c
avs3dec.c
avs.c avformat/avs: Check if return code is representable 2023-12-21 22:43:52 +01:00
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
caf.h
cafdec.c avformat/cafdec: Check that data chunk end fits within 64bit 2024-04-03 02:06:03 +02:00
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c
codec2.c
concat.c
concatdec.c avformat/concatdec: Check user_duration sum 2024-04-03 02:06:05 +02:00
crcenc.c
crypto.c
dash.c
dash.h
dashdec.c
dashenc.c
data_uri.c
dauddec.c
daudenc.c
dcstr.c
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 avformat/dxa: Adjust order of operations around block align 2024-04-03 02:06:03 +02:00
eacdata.c
electronicarts.c
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 avformat/flacdec: Avoid double AVERRORS 2024-04-03 02:05:57 +02:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Use 64bit for sum_flv_tag_size 2022-09-25 13:52:01 +02:00
flvenc.c
format.c avformat/format: Stop reading data at EOF during probing 2023-12-21 22:43:49 +01:00
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c
fwse.c avformat/fwse: Remove always false expression 2024-06-15 23:32:54 +02:00
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 avformat/hls: reduce default max reload to 3 2023-12-21 22:43:50 +01:00
hlsenc.c libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr. 2024-04-03 02:05:58 +02:00
hlsplaylist.c
hlsplaylist.h
hlsproto.c
hnm.c
http.c
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: read_uslt() check for the amount read 2024-04-03 02:06:02 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c avformat/iff: Saturate avio_tell() + 12 2024-04-03 02:06:03 +02:00
ifv.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c avformat/img2dec: assert no pipe on ts_from_file 2024-07-21 19:55:41 +02:00
img2enc.c
imx.c
ingenientdec.c
internal.h
ip.c
ip.h
ipmovie.c
ipudec.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom_tags.c
isom.c
isom.h
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c avformat/jacosubdec: Use 64bit for abs 2024-04-03 02:06:05 +02:00
jacosubenc.c
jvdec.c
kvag.c avformat/kvag: Check sample_rate 2024-06-15 23:32:44 +02:00
latmenc.c
libamqp.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c
librist.c
librtmp.c
libsmbclient.c
libsrt.c
libssh.c
libzmq.c avformat/libzmq: Check av_strstart() 2024-06-15 23:32:59 +02:00
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
luodatdec.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Assert that num_levels is non negative 2024-06-15 23:33:00 +02:00
matroskaenc.c
mca.c
mccdec.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
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
moflex.c
mov_chan.c
mov_chan.h
mov_esds.c
mov.c avformat/mov: Check edit list for overflow 2024-07-21 18:56:10 +02:00
movenc.c avformat/movenc: Check that cts fits in 32bit 2024-04-03 02:06:08 +02:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c
mpc8.c
mpc.c
mpeg.c avformat/mpeg: Check len in mpegps_probe() 2024-07-21 19:58:36 +02:00
mpeg.h
mpegenc.c
mpegts.c avformat/mpegts: Reset local nb_prg on add_program() failure 2024-04-03 02:06:09 +02:00
mpegts.h
mpegtsenc.c
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mspdec.c
mtaf.c
mtv.c
musx.c
mux.c
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Check container_ul->desc before use 2024-07-21 17:22:25 +02:00
mxfenc.c
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c avformat/nutdec: Add check for avformat_new_stream 2023-04-07 23:40:47 +02: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 avformat/oggparsetheora: clip duration within 64bit 2023-12-21 22:43:43 +01:00
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c
omaenc.c
options_table.h
options.c
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
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
rawdec.c
rawdec.h
rawenc.c
rawenc.h
rawutils.c
rawvideodec.c
rdt.c avformat/rdt: Check pkt_len 2024-07-21 19:59:19 +02:00
rdt.h
realtextdec.c
redspark.c
replaygain.c avformat/replaygain: avoid undefined / negative abs 2023-04-07 23:40:36 +02:00
replaygain.h
riff.c
riff.h
riffdec.c
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c avformat/rmdec: use 64bit for audio_framesize checks 2024-07-21 21:40:54 +02:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c avformat/rpl: Use 64bit for total_audio_size and check it 2024-04-03 02:06:06 +02:00
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 avformat/rtmppkt: Simplify and deobfuscate amf_tag_skip() slightly 2024-07-21 21:41:43 +02:00
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 avformat/rtpenc_vc2hq: Check sizes 2024-07-21 21:10:35 +02:00
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c avformat/rtsp: Check that lower transport is handled in one of the if() 2024-07-21 21:12:32 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbcdec.c
sbgdec.c avformat/sbgdec: Check for negative duration 2024-04-03 02:06:06 +02:00
sccdec.c
sccenc.c
sctp.c
sdp.c avformat/sdp: Check before appending "," 2024-06-15 23:32:58 +02:00
sdr2.c
sdsdec.c avformat/sdsdec: Use av_rescale() to avoid intermediate overflow in duration calculation 2022-09-25 13:52:02 +02:00
sdxdec.c
segafilm.c
segafilmenc.c
segment.c
serdec.c
sga.c
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 avformat/spdifdec: Use 64bit to compute bit rate 2022-09-25 13:52:03 +02:00
spdifenc.c
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c avformat/subfile: Assert that whence is a known case 2024-07-21 21:35:14 +02:00
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c
svag.c
svs.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_mbedtls.c
tls_openssl.c
tls_schannel.c avformat/tls_schannel: Initialize ret 2024-07-21 21:36:44 +02:00
tls_securetransport.c
tls.c
tls.h
tmv.c avformat/tmv: Check video chunk size 2023-12-21 22:43:57 +01:00
tta.c avformat/tta: Better totalframes check 2023-12-21 22:43:55 +01:00
ttaenc.c
ttmlenc.c
tty.c
txd.c
ty.c
udp.c
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c seek: Fix crashes in ff_seek_frame_binary if built with latest Clang 14 2023-12-21 22:44:02 +01:00
v210.c
vag.c
vapoursynth.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h
vividas.c avformat/vividas: Check packet size 2022-10-04 23:58:34 +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
vplayerdec.c
vqf.c
w64.c
w64.h
wavdec.c avformat/wavdec: satuarte next_tag_ofs, data_end 2024-04-03 02:06:07 +02:00
wavenc.c
wc3movie.c
webm_chunk.c
webmdashenc.c
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c avformat/westwood_vqa: Fix 2g packets 2024-04-03 02:06:07 +02:00
wsddec.c
wtv_common.c
wtv.h
wtvdec.c
wtvenc.c
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c avformat/xwma: sanity check bits_per_coded_sample 2023-12-21 22:43:56 +01:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c