Michael Niedermayer
ec2d476bb0
swscale/yuv2rgb: Use 64bit for brightness computation
...
This will not overflow for normal values
Fixes: CID1500280 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bfc22f364d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-13 18:30:14 +02:00
Michael Niedermayer
8c3bfd48e6
ffmpeg_filter: Factor get_compliance_unofficial_pix_fmts() out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d94b11a721 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 19:15:20 +02:00
Michael Niedermayer
c4998eaaf4
avcodec/mpegvideo_enc: Fix 1 line and one column images
...
Fixes: Ticket10952
Fixes: poc21ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 96449cfeae )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:45 +02:00
Michael Niedermayer
561821b3b8
avcodec/mpeg4videodec: assert impossible wrap points
...
Helps: CID1473517 Uninitialized scalar variable
Helps: CID1473497 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8fc649b931 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:05 +02:00
Michael Niedermayer
b788b7319e
avcodec/vble: Check av_image_get_buffer_size() for failure
...
Fixes: CID1461482 Improper use of negative value
Sponsored-by: Sovereign Tech Fund
Reviewed-.by: "Xiang, Haihao" <haihao.xiang@intel.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit dd5379db5d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:04 +02:00
Michael Niedermayer
79fc6b58f0
avcodec/jpeg2000dec: remove ST=3 case
...
Fixes: CID1460979 Logically dead code
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Tomas Härdin <git@haerdin.se >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4ed4f9a6c0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:04 +02:00
Michael Niedermayer
cb1d4c9072
avcodec/lpc: copy levenson coeffs only when they have been computed
...
Fixes: CID1473514 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c2d897f356 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:04 +02:00
Michael Niedermayer
c13f25a0de
libavutil/base64: Try not to write over the array end
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2d216566f2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-06-03 18:33:03 +02:00
Michael Niedermayer
a17acf84d8
avcodec/hevcdec: Check ref frame
...
Fixes: NULL pointer dereferences
Fixes: 68197/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-6382538823106560
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5eb05f4450 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-05-22 02:48:21 +02:00
Michael Niedermayer
2bcd3136b3
avformat/mxfdec: Check index_edit_rate
...
Fixes: Assertion b >=0 failed at libavutil/mathematics.c:62
Fixes: 67811/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-5108429687422976
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 ed49391961 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-04 21:10:57 +02:00
Michael Niedermayer
c657698796
swscale/utils: Fix xInc overflow
...
Fixes: signed integer overflow: 2 * 1073741824 cannot be represented in type 'int'
Fixes: 67802/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-6249515855183872
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 1a9eda65d0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-04 21:10:00 +02:00
Michael Niedermayer
15205f8889
avformat/mxfdec: Make edit_unit_byte_count unsigned
...
Suggested-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f30fe5e8d0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:57:48 +02:00
Michael Niedermayer
b3db166971
avformat/movenc: Check that cts fits in 32bit
...
Fixes: Assertion av_rescale_rnd(start_dts, mov->movie_timescale, track->timescale, AV_ROUND_DOWN) <= 0 failed at libavformat/movenc.c:3694
Fixes: poc2
Found-by: Wang Dawei and Zhou Geng, from Zhongguancun Laboratory
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d88c284c18 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:46:13 +02:00
Michael Niedermayer
9ac32ef7f2
avformat/mxfdec: Check first case of offset_temp computation for overflow
...
This is kind of ugly
Fixes: signed integer overflow: 255 * 1157565362826411919 cannot be represented in type 'long'
Fixes: 67313/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6250434245230592
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 d6ed6f6e8d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:40:43 +02:00
Michael Niedermayer
b6447d6e9c
avformat/westwood_vqa: Fix 2g packets
...
Fixes: signed integer overflow: 2147483424 * 2 cannot be represented in type 'int'
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-4576211411795968
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 86f73277bf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:21:50 +02:00
Michael Niedermayer
ecd23c0b0c
avformat/matroskadec: Check timescale
...
Fixes: 3.82046e+18 is outside the range of representable values of type 'unsigned int'
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6381436594421760
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 e849eb2343 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:20:53 +02:00
Michael Niedermayer
b6905d16e9
avformat/sbgdec: Check for negative duration
...
Fixes: signed integer overflow: 9223372036854775807 - -8000000 cannot be represented in type 'long'
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_SBG_fuzzer-5133181743136768
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 0bed22d597 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:05:18 +02:00
Michael Niedermayer
f0d1868cda
avformat/rpl: Use 64bit for total_audio_size and check it
...
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-4677434693517312
Fixes: signed integer overflow: 5555555555555555556 * 8 cannot be represented in type 'long long'
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 878625812f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:03:31 +02:00
Michael Niedermayer
e3d7703469
avformat/timecode: use 64bit for intermediate for rounding in fps_from_frame_rate()
...
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4802790784303104
Fixes: signed integer overflow: 1768972133 + 968491058 cannot be represented in type 'int'
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 3d8d778a68 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 01:02:29 +02:00
Michael Niedermayer
d53b763fab
avcodec/truemotion1: Height not being a multiple of 4 is unsupported
...
mb_change_bits is given space based on height >> 2, while more data is read
Fixes: out of array access
Fixes: 62285/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION1_fuzzer-5201925062590464.fuzz
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 ebdcf98499 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-04-03 00:59:06 +02:00
Michael Niedermayer
cf051d0750
avformat/cafdec: dont seek beyond 64bit
...
Fixes: signed integer overflow: 64 + 9223372036854775807 cannot be represented in type 'long long'
Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064
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 d973fcbcc2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 20:13:56 +01:00
Michael Niedermayer
5355599933
avformat/id3v2: read_uslt() check for the amount read
...
Fixes: timeout
Fixes: 66783/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5356884892647424
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 c0f4abe2aa )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 20:11:45 +01:00
Michael Niedermayer
b9ea7b3449
avcodec/proresenc_kostya: Remove bug similarity text
...
According to kostya, it is not based on Wassermans encoder
CC: Kostya Shishkov <kostya.shishkov@gmail.com >
CC: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e0e30e07a1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 20:09:11 +01:00
Michael Niedermayer
c9ccd045e1
avcodec/vorbisdec: Check remaining data in vorbis_residue_decode_internal()
...
Fixes: timeout
Fixes: 66326/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-6295291863040000
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 dc89cf804a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 20:07:52 +01:00
Michael Niedermayer
7d3c0fbfba
libswscale/utils: Fix bayer to yuvj
...
Fixes: out of array access.
Earlier code assumes that a unscaled bayer to yuvj420 converter exists
but the later code then skips yuvj420
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e9cc9e492f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 20:05:26 +01:00
Michael Niedermayer
b4a7c55f79
swscale/swscale: Check srcSliceH for bayer
...
Fixes: Assertion srcSliceH > 1 failed at libswscale/swscale_unscaled.c:1359
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 64098d0cd8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 18:52:32 +01:00
Michael Niedermayer
4f7d68172b
swscale/utils: Allocate more dithererror
...
Fixes: out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 18f26f8a2f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 18:46:54 +01:00
Michael Niedermayer
5f82c962b6
avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
...
Fixes: Ticket6581
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3be80ce299 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 18:34:00 +01:00
Michael Niedermayer
e166a77c0d
avcodec/mpegvideo_enc: Use ptrdiff_t for stride
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e063c1d079 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2024-03-26 04:16:47 +01:00
Michael Niedermayer
f2d5d1d138
avcodec/mpegvideo_enc: Dont copy beyond the image
...
Fixes: out of array access
Fixes: tickets/10754/poc17ffmpeg
Discovered by Zeng Yunxiang.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a066b8a809 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-30 22:15:44 +01:00
Michael Niedermayer
367670b387
avformat/flacdec: Avoid double AVERRORS
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 029294ff54 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-29 23:10:26 +01:00
Michael Niedermayer
77fbef0fdd
avfilter/vf_vidstabdetect: Avoid double AVERRORS
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bb04235d72 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-29 23:09:19 +01:00
Michael Niedermayer
e08f712507
avfilter/vf_gradfun: Do not overread last line
...
The code works in steps of 2 lines and lacks support for odd height
Implementing odd height support is better but for now this fixes the
out of array access
Fixes: out of array access
Fixes: tickets/10702/poc6ffmpe
Found-by: Zeng Yunxiang
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e4d2666bdc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-29 02:37:15 +01:00
Michael Niedermayer
897d4303be
avformat/mov: do not set sign bit for chunk_offsets
...
Fixes: signed integer overflow: 2314885530818453536 - -7412889664301817824 cannot be represented in type 'long'
Fixes: 64296/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6304027146846208
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 cfc0a68d4d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-29 02:29:46 +01:00
Michael Niedermayer
29ea598214
avcodec/jpeglsdec: Check Jpeg-LS LSE
...
Fixes: signed integer overflow: 2147478526 + 33924 cannot be represented in type 'int'
Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int'
Fixes: 64243/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5195717848989696
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 c72a20f01a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-29 02:26:35 +01:00
Brad Smith
84535c7b0a
configure: Enable section_data_rel_ro for FreeBSD and NetBSD aarch64 / arm
...
Fixes the build. It's a requirement when utilizing PIE.
Signed-off-by: Brad Smith <brad@comstyle.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6066c430e3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-26 00:18:56 +01:00
Michael Niedermayer
d459dfaf01
avformat/mov: Ignore duplicate ftyp
...
Fixes: switch_1080p_720p.mp4
Found-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4cdf2c7f76 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-12-15 00:21:39 +01:00
Martin Storsjö
3d80573367
seek: Fix crashes in ff_seek_frame_binary if built with latest Clang 14
...
Passing an uninitialized variable as argument to a function is
undefined behaviour (UB). The compiler can assume that UB does not
happen.
Hence, the compiler can assume that the variables are never
uninitialized when passed as argument, which means that the codepaths
that initializes them must be taken.
In ff_seek_frame_binary, this means that the compiler can assume
that the codepaths that initialize pos_min and pos_max are taken,
which means that the conditions "if (sti->index_entries)" and
"if (index >= 0)" can be optimized out.
Current Clang git versions (upcoming Clang 14) enabled an optimization
that does this, which broke the current version of this function
(which intentionally left the variables uninitialized, but silencing
warnings about being uninitialized). See [1] for discussion on
the matter.
[1] https://reviews.llvm.org/D105169#3069555
Signed-off-by: Martin Storsjö <martin@martin.st >
(cherry picked from commit ab79263419 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-11-16 23:52:44 +01:00
Michael Niedermayer
b8d9c50129
avcodec/4xm: Check for cfrm exhaustion
...
Fixes: index -1 out of bounds for type 'CFrameBuffer [100]'
Fixes: 63877/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FOURXM_fuzzer-5854263397711872
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 bb0a684d93 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-11-10 00:25:52 +01:00
Michael Niedermayer
b429697db1
avformat/mov: Disallow FTYP after streams
...
Fixes: Assertion !c->fc->nb_streams failed at libavformat/mov.c:7799
Fixes: 63875/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5479178702815232
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 19fcf43131 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-11-10 00:24:33 +01:00
Andreas Rheinhardt
25b3a5ef00
avformat/matroskadec: Fix declaration-after-statement warnings
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
(cherry picked from commit 37b5f4a1f6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n2.8.22
2023-10-29 01:24:48 +02:00
Michael Niedermayer
a7ec25b704
Changelog: update
2023-10-29 00:34:44 +02:00
Michael Niedermayer
05c702a0cf
avformat/rtsp: Use rtsp_st->stream_index
...
Fixes: out of array access
Fixes: rtpdec_h264.c149/poc
Found-by: Hardik Shah of Vehere
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e4d5ac8d7d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-28 19:00:56 +02:00
Michael Niedermayer
7ffdd2be6a
avcodec/jpeg2000dec: Check image offset
...
Fixes: left shift of negative value -538967841
Fixes: 62447/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-6427134337613824
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <git@haerdin.se >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 88453250db )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-28 18:59:15 +02:00
Michael Niedermayer
8ba64279ce
Update for FFmpeg 2.8.22
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 13:14:33 +02:00
Michael Niedermayer
1459e82b1c
avcodec/xvididct: Make c* unsigned to avoid undefined overflows
...
Fixes: signed integer overflow: 1496950099 + 728014168 cannot be represented in type 'int'
Fixes: 62667/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEGB_fuzzer-6511785170305024
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 f7e5537dc1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 12:34:19 +02:00
Michael Niedermayer
e240d30174
avformat/tmv: Check video chunk size
...
This check matches the audio chunk check
Fixes: Timeout
Fixes: 62681/clusterfuzz-testcase-minimized-ffmpeg_dem_TMV_fuzzer-5299107876700160
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 b79fc70596 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 12:31:44 +02:00
Michael Niedermayer
bd7a703e94
avformat/matroskadec: Check prebuffered_ns for overflow
...
Fixes: signed integer overflow: 9223372036630775808 + 1000000000 cannot be represented in type 'long'
Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-5406131992526848
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 2d6df3719d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 12:30:00 +02:00
Michael Niedermayer
c731c8ce95
avformat/wavdec: Check left avio_tell for overflow
...
Fixes: signed integer overflow: 155 + 9223372036854775655 cannot be represented in type 'long'
Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_W64_fuzzer-5364032278495232
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 929ddef3f4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 12:29:16 +02:00
Michael Niedermayer
eddc8a2da6
avformat/tta: Better totalframes check
...
Fixes: signed integer overflow: 4 * 740491135 cannot be represented in type 'int'
Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_TTA_fuzzer-6298893367508992
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 5f0d00464a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-10-19 12:28:13 +02:00