Rémi Denis-Courmont
7ef6f317f8
avcodec/x86/mathops: clip constants used with shift instructions within inline assembly
...
Fixes assembling with binutil as >= 2.41
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit effadce6c7 )
2024-04-03 18:52:38 -03:00
Eugene Zemtsov
cdd355e087
avformat/mov: Check if a key is longer than the atom containing it
...
Stop reading keys and return AVERROR_INVALIDDATA if key_size
is larger than the amount of space left in the atom.
Bug: https://crbug.com/41496983
Signed-off-by: Eugene Zemtsov <eugene@chromium.org >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 8a23a145d8 )
2024-04-02 09:21:21 -03:00
Timo Rothenpieler
835453fbd8
avcodec/nvdec: reset bitstream_len/nb_slices when resetting bitstream pointer
2024-03-30 00:29:38 +01:00
Michael Niedermayer
76ee3e41df
avcodec/noise_bsf: Check for wrapped frames
...
Wrapped frames contain pointers so they need specific code to
noise them, the generic code would lead to segfaults
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0889ebc577 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n4.1.11
2023-06-07 01:33:16 +02:00
Michael Niedermayer
a957d604a2
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-06-04 18:35:46 +02:00
Jiasheng Jiang
08f0a18c34
avformat/nutdec: Add check for avformat_new_stream
...
Check for failure of avformat_new_stream() and propagate
the error code.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-27 22:38:20 -03:00
Michael Niedermayer
e14e7579f9
Update for 4.1.11
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 18:18:40 +02:00
Michael Niedermayer
4e377ec8dc
avformat/wavdec: Check that smv block fits in available space
...
Fixes: OOM
Fixes: 56271/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-5290810045497344
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 a76efafdb9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 14:45:28 +02:00
Michael Niedermayer
bb34d18e33
avcodec/tak: Check remaining bits in ff_tak_decode_frame_header()
...
Fixes: out of array access
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-6682195323650048
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 19b66b89da )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 14:45:28 +02:00
Michael Niedermayer
1cf4afaeab
avcodec/utils: the IFF_ILBM implementation assumes that there are a multiple of 16 allocated
...
Fixes: out of array access
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5124452659888128
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-6362836707442688
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 34056a94ea )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 14:45:28 +02:00
Michael Niedermayer
a207fbcdff
avcodec/pngdec: Do not pass AVFrame into global header decode
...
The global header should not contain a frame, and decoding it
would result in leaks
Fixes: memleak
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APNG_fuzzer-6603443149340672
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 d31d4f3228 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 14:45:28 +02:00
Michael Niedermayer
4443cdbc92
avcodec/vorbisdec: Check codebook float values to be finite
...
Fixes: Timeout
Fixes: 55116/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-4572159970508800
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cadd7e7a75 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:44 +02:00
Michael Niedermayer
67128a952c
avcodec/g2meet: Replace fake allocation avoidance for framebuf
...
framebuf is only allocated when the new width/height are larger than the old
but nothing sets the old so its always allocated.
Use av_fast_mallocz() instead.
Fixes: Timeout
Fixes: 55094/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5116909932904448
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 38adbc6eeb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:44 +02:00
Michael Niedermayer
3b5c0f75ef
avcodec/lcldec: More space for rgb24
...
Fixes: Ticket 10239
Fixes: zlib_306_306_rgb24.av
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e2c3aa8e2b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:43 +02:00
Michael Niedermayer
60b30ede05
avcodec/lcldec: Support 4:1:1 and 4:2:2 with odd width
...
Fixes: Ticket10240
Fixes: zlib_306_306_yuv422.avi
Fixes: zlib_306_306_yuv411.avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0cf1ac905d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:43 +02:00
Michael Niedermayer
161740d99f
libavcodec/lcldec: width and height should not be unsigned
...
Computations like col < width - 3 will not work with unsigned width=1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3eb4e28c26 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:43 +02:00
Michael Niedermayer
c536ee212a
avcodec/escape124: Check that blocks are allocated before use
...
Fixes: NULL pointer dereference
Fixes: 57819/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-5077280228769792
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 5366ae12b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:43 +02:00
Michael Niedermayer
17163b57bd
avcodec/huffyuvdec: Fix undefined behavior with shift
...
Fixes: left shift of negative value -1
Fixes: 57554/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFVHUFF_fuzzer-4853603839115264
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 27e7857bd1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:42 +02:00
Michael Niedermayer
a6676288e4
avcodec/j2kenc: Replace RGB24 special case by generic test
...
This fixes RGB48 with libavcodec as decoder
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ad4d647591 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:42 +02:00
Michael Niedermayer
78efab9bed
avcodec/j2kenc: remove misleading pred value
...
This field is only checked for being 0 or not and not zero means 5/3
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0adb375377 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:42 +02:00
Michael Niedermayer
008e01a2de
avcodec/j2kenc: fix 5/3 DWT identifer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f6955b6df4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:41 +02:00
Michael Niedermayer
d82fb8b689
avcodec/vp3: Check width to avoid assertion failure
...
Fixes: Assertion failure on x86-32
av_assert2(block_w * sizeof(pixel) <= FFABS(buf_linesize)); in ff_emulated_edge_mc()
Fixes: 39641/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-5925660741206016
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 dab1cd2dc0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:41 +02:00
Michael Niedermayer
477c5cf023
avcodec/g729postfilter: Limit shift in long term filter
...
Fixes: shift exponent 34 is too large for 32-bit type 'int'
Fixes: 57389/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-6229522659016704
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 6d1d8609ac )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:41 +02:00
Lynne
70189b9ecb
configure: update copyright year
...
(cherry picked from commit 62da0b4a74 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:40 +02:00
Michael Niedermayer
b06620b9be
avcodec/tests/snowenc: Fix 2nd test
...
(cherry picked from commit 163013c724 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:40 +02:00
Michael Niedermayer
75c8967329
avcodec/tests/snowenc: return a failure if DWT/IDWT mismatches
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 771c266c0b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:40 +02:00
Michael Niedermayer
a9e8b170a8
avcodec/snowenc: Fix visual weight calculation
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5b5fcadea0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:39 +02:00
Michael Niedermayer
55d2d09a1e
avcodec/tests/snowenc: unbreak DWT tests
...
the IDWT data type mismatched current code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8b3351bbea )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:39 +02:00
Michael Niedermayer
cff7e3636e
avcodec/escape124: Fix some return codes
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 98df605f7a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:39 +02:00
Michael Niedermayer
31206a077f
avcodec/escape124: fix signdness of end of input check
...
Fixes: Timeout
Fixes: 56561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-5560363635834880
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 87ad0a5dd7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:38 +02:00
Michael Niedermayer
c02752bf7c
Use https for repository links
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 011f30fc82 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:38 +02:00
Michael Niedermayer
d8e1d8063e
avcodec/motionpixels: Mask pixels to valid values
...
Fixes: out of array access
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOTIONPIXELS_fuzzer-6724203352555520
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 ac6eec1fc2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:38 +02:00
Michael Niedermayer
3c982fc61c
avcodec/xpmdec: Check size before allocation to avoid truncation
...
Fixes:OOM
Fixes:out of array access (no testcase)
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XPM_fuzzer-6573323838685184
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 95f0f84dae )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:37 +02:00
Michael Niedermayer
e82a3c05a4
avcodec/bink: Avoid undefined out of array end pointers in binkb_decode_plane()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ea9deafd3b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:37 +02:00
Michael Niedermayer
abe5bab7b5
avcodec/bink: Fix off by 1 error in ref end
...
Fixes: out of array access
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-6657932926517248
Alterantivly to this it is possibly to allocate a bigger array
Note: oss-fuzz assigned this issue to a unrelated theora bug so the bug number matches that
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 49487045dd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:37 +02:00
Michael Niedermayer
fd6043ac28
avcodec/utils: Ensure linesize for SVQ3
...
Fixes: Assertion block_w * sizeof(uint8_t) <= ((buf_linesize) >= 0 ? (buf_linesize) : (-(buf_linesize))
Fixes: 54861/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SVQ3_fuzzer-5352418248622080
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 4eef658ca5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:36 +02:00
Michael Niedermayer
ca1b6608f5
avcodec/utils: allocate a line more for VC1 and WMV3
...
Fixes: out of array read on 32bit
Fixes: 54857/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1_fuzzer-5840588224462848
The chroma MC code reads over the currently allocated frame.
Alternative fixes would be allocating a few bytes more at the end instead of a whole
line extra or to adjust the threshold where the edge emu code is activated
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 01636a63d4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:36 +02:00
Michael Niedermayer
fc682a1077
avcodec/videodsp_template: Adjust pointers to avoid undefined pointer things
...
Fixes: subtraction of unsigned offset from 0xf6602770 overflowed to 0xf6638c80
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-495074400600064
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 f0150cd41c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:36 +02:00
Michael Niedermayer
205c8feeef
avcodec/pngdec: Check deloco index more exactly
...
Fixes: out of array access:
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-6716193709096960
Alternatively it should be possible to limit this to 3 plane RGB 8 /16bit to ensure the size is what it should be
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 d5bae70406 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:35 +02:00
Michael Niedermayer
d5eef2fb85
avcodec/ffv1dec: Check that num h/v slices is supported
...
Fixes: out of array access
Fixes: 55597/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-4898293416329216
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 8ead0ae68e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:35 +02:00
Michael Niedermayer
042e207e9b
avformat/mov: Check samplesize and offset to avoid integer overflow
...
Fixes: signed integer overflow: 9223372036854775584 + 536870912 cannot be represented in type 'long'
Fixes: 55844/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-510613920664780
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 53c1f5c2e2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:35 +02:00
Michael Niedermayer
3b7a0e2b8f
avcodec/pictordec: Remove mid exit branch
...
This causes the RLE decoder to exit before applying the last RLE run
All images i tested with are unchanged, this makes the special case
for handling the last run unused for non truncated images.
Reviewed-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 88f0e05c72 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:34 +02:00
Michael Niedermayer
ee9cec2566
avcodec/eac3dec: avoid float noise in fixed mode addition to overflow
...
Fixes: 2.28595e+09 is outside the range of representable values of type 'int'
Fixes: 54644/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AC3_FIXED_fuzzer-4816961584627712
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 2f48d227c1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:34 +02:00
Michael Niedermayer
9fc2c82006
avcodec/utils: use 32pixel alignment for bink
...
bink supports 16x16 blocks in chroma planes thus we need to allocate enough.
Fixes: out of array access
Fixes: 55026/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-6013915371012096
Reviewed-by: Peter Ross <pross@xvid.org >
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 b95b2c8492 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:34 +02:00
Michael Niedermayer
306e38ae90
avcodec/012v: Order operations for odd size handling
...
Fixes: out of array access
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZERO12V_fuzzer-6714182078955520.fuzz
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZERO12V_fuzzer-6698145212137472.fuzz
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4d42d82563 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:33 +02:00
Michael Niedermayer
c23ef5b345
avcodec/eatgq: : Check index increments in tgq_decode_block()
...
Fixes: out of array access
Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EATGQ_fuzzer-6743211456724992
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 e7755b433e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:33 +02:00
Michael Niedermayer
dd507e4c8f
avcodec/scpr: Test bx before use
...
Fixes: out of array access on 32bit
Fixes: 54850/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5302669294305280
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 1b59de3770 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:33 +02:00
Michael Niedermayer
cae611f864
avcodec/sunrast: Fix maplength check
...
Fixes: out of bounds read
Found-by: Ibrahim Mohamed <ielsayed@meta.com >
Reviewed-by; Ibrahim Mohamed <ielsayed@meta.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f8a2a65078 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:32 +02:00
Michael Niedermayer
662c3060b9
avcodec/wavpack: Avoid undefined shift in get_tail()
...
Fixes: left shift of 1208485947 by 1 places cannot be represented in type 'int'
Fixes: 54058/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5827521084260352
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 8374a747af )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:32 +02:00
Michael Niedermayer
ba9e8fa53a
avformat/id3v2: Check taglen in read_uslt()
...
Fixes: Timeout (read mostly the same data repeatly)
Fixes: 52457/clusterfuzz-testcase-minimized-ffmpeg_dem_ALP_fuzzer-6610706313379840
Fixes: 53098/clusterfuzz-testcase-minimized-ffmpeg_dem_SOL_fuzzer-6481382981632000
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 a798af91d7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-05-26 00:04:32 +02:00