Michael Niedermayer
ca7078dd24
avcodec/wnv1: Check for width =1
...
The decoder only outputs pixels for width >1 images, fail early
Fixes: Timeout
Fixes: 48298/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WNV1_fuzzer-6198626319204352
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 d98d5a436a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
07350dede5
avformat/sctp: close socket on errors
...
This is untested as i have no testcase
Fixes: CID1302709
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c9a2996544
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
bafac17227
avcodec/qdrw: adjust max colors to array size
...
Fixes: out of array access
Fixes: 48429/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDRAW_fuzzer-4608329791438848
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 cd847f86d3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
a3059140bd
avformat/aiffdec: cleanup size handling for extreem cases
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c6f1e48b86
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
e03ddb52bc
avcodec/jpeglsdec: fix end check for xfrm
...
Fixes: out of array access
Fixes: 47871/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AMV_fuzzer-5646305956855808
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 6a82412bf3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
db570af44a
avcodec/cdgraphics: limit scrolling to the line
...
Fixes: out of array access
Fixes: 47877/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDGRAPHICS_fuzzer-5690504626438144
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 b7e30a13d4
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
b61ed4614e
avformat/aiffdec: avoid integer overflow in get_meta()
...
Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 45891/clusterfuzz-testcase-minimized-ffmpeg_dem_AIFF_fuzzer-6159183893889024
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 6a02de2127
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
c82d1ac95a
avformat/ape: more bits in size for less overflows
...
Fixes: signed integer overflow: 2147483647 + 3 cannot be represented in type 'int'
Fixes: 46184/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-4678059519770624
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 e5f6707a7b
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
6c214b8e1a
avformat/bfi: Check offsets better
...
Fixes: signed integer overflow: -2145378272 - 538976288 cannot be represented in type 'int'
Fixes: 45690/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5015496544616448
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 35dc93ab44
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
cc277f46ae
avformat/asfdec_f: Check packet_frag_timestamp
...
Fixes: signed integer overflow: -9223372036854775808 - 4607 cannot be represented in type 'long'
Fixes: 45685/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5280102802391040
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 ffc8772150
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
7f4cd94532
avcodec/texturedspenc: Fix indexing in color distribution determination
...
Fixes CID1396405
MSE and PSNR is slightly improved, and some noticable corruptions disappear as
well.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Marton Balint <cus@passwd.hu >
(cherry picked from commit ade36d61de
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-10-28 21:04:04 +02:00
Michael Niedermayer
b5374e273b
Update for 2.8.20
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n2.8.20
2022-05-11 02:18:35 +02:00
Andreas Rheinhardt
1a541dc0c5
avcodec/ac3enc: Fix memleak
...
Fixes ticket #8294 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
(cherry picked from commit 097c917c14
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:55:07 +02:00
James Almer
40dfd62363
avformat/nutenc: don't allocate a dynamic AVIOContext if no index is going to be written
...
Fixes ticket #8295
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 1d479300cb
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:38:52 +02:00
Paul B Mahol
4f566654e7
avfilter/vf_random: fix memory leaks
...
Fixes #8296
(cherry picked from commit 3488e0977c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:35:13 +02:00
Andreas Rheinhardt
0c949b6ebf
fftools/ffmpeg_opt: Fix leak of options when parsing options fails
...
Fixes #8094 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 21265f42ec
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:28:31 +02:00
Paul B Mahol
a19796a15e
avfilter/vf_edgedetect: fix heap-buffer overflow
...
Fixes #8275
(cherry picked from commit de598f82f8
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:25:41 +02:00
Paul B Mahol
1a4d18820d
avfilter/vf_w3fdif: deny processing small videos
...
Fixes #8243
(cherry picked from commit 0e68e8c93f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 19:24:00 +02:00
Paul B Mahol
ff73a50456
avfilter/vf_edgedetect: check if height is big enough
...
Fixes #8260
(cherry picked from commit ccf4ab8c9a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 18:43:06 +02:00
Paul B Mahol
ea5d154845
avfilter/vf_fieldorder: fix heap-buffer overflow
...
Fixes #8264
(cherry picked from commit 07050d7bdc
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 18:37:42 +02:00
Paul B Mahol
93ad1e4a9f
avfilter/vf_fieldmatch: fix heap-buffer overflow
...
Also fix use of uninitialized values.
Fixes #8239
(cherry picked from commit ce5274c138
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 18:35:04 +02:00
James Almer
02161c6ed1
aformat/movenc: add missing padding to output track extradata
...
Fixes ticket #8183 .
Tested-by: Thierry Foucu <tfoucu@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 58aa0ed8f1
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 18:31:05 +02:00
Paul B Mahol
3d350ec728
avcodec/pngenc: remove monowhite from apng formats
...
Monowhite pixel format is not supported, and it does not make sense
to add support for it.
Fixes #7989
(cherry picked from commit 5d9f44da46
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-05-04 18:17:58 +02:00
Michael Niedermayer
7a75295917
Update for 2.8.19
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n2.8.19
2022-04-23 17:43:26 +02:00
Gyan Doshi
7dae15a42b
configure: bump year
...
(cherry picked from commit 2f6360ff21
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-04-16 10:49:44 +02:00
Michael Niedermayer
51ce9b5029
avcodec/diracdec: avoid signed integer overflow in global mv
...
Fixes: signed integer overflow: -128275513086 * -76056576 cannot be represented in type 'long'
Fixes: 45818/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5129799149944832
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 7f1279684e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-04-03 23:56:13 +02:00
Michael Niedermayer
b90025286b
avcodec/apedec: fix a integer overflow in long_filter_high_3800()
...
Fixes: signed integer overflow: -2146549696 - 3923884 cannot be represented in type 'int'
Fixes: 45907/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5992380584558592
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 b085b400be
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-04-03 23:55:31 +02:00
Michael Niedermayer
21caec9402
avformat/aqtitledec: Skip unrepresentable durations
...
Fixes: signed integer overflow: -5 - 9223372036854775807 cannot be represented in type 'long'
Fixes: 45665/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-475618463934054
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 c2d1597a8a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 23:17:57 +02:00
Michael Niedermayer
2e31d39b31
avformat/cafdec: Do not store empty keys in read_info_chunk()
...
Fixes: Timeout
Fixes: 45543/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-5684953164152832
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 7ec28e1d4c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 23:16:47 +02:00
Michael Niedermayer
bcc5755ae3
avformat/matroskadec: Check pre_ns
...
Fixes: division by 0
Fixes: 44615/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6681108677263360
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 710e51677a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 23:13:19 +02:00
Michael Niedermayer
16372498b5
avcodec/sonic: Use unsigned for predictor_k to avoid undefined behavior
...
Fixes: signed integer overflow: -1094995529 * 24 cannot be represented in type 'int'
Fixes: 44436/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SONIC_fuzzer-4874459459223552
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 28008bf95e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 23:11:39 +02:00
Michael Niedermayer
478796dcf2
avformat/matroskadec: Use rounded down duration in get_cue_desc() check
...
Floating point is evil, it would be better if duration was not a double
Fixes: Infinite loop
Fixes: 45123/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6725052291219456
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 bd3a03db9a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 23:07:18 +02:00
Michael Niedermayer
81e99640d5
avformat/mov: Disallow empty sidx
...
It appears this is not allowed "Each Segment Index box documents how a (sub)segment is divided into one or more subsegments
(which may themselves be further subdivided using Segment Index boxes)."
Fixes: Null pointer dereference
Fixes: Ticket9517
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4419433d77
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 22:40:45 +02:00
Michael Niedermayer
97a21e9373
avformat/matroskadec: Check duration
...
Fixes: -nan is outside the range of representable values of type 'long'
Fixes: 44614/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6216204841254912
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 36680078ca
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-03-28 22:18:12 +02:00
Michael Niedermayer
a865deaa39
avcodec/jpeglsdec: Fix if( code style
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f306b8e80a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:14:38 +01:00
Michael Niedermayer
d96677d8cf
avcodec/jpeglsdec: Check get_ur_golomb_jpegls() for error
...
Fixes: Timeout
Fixes: Invalid shift
Fixes: 44548/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-556487680891289
Fixes: 44569/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AMV_fuzzer-6302543246917632
Fixes: 44570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THP_fuzzer-4550196556595200
Fixes: 44592/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_fuzzer-5651610385121280
Fixes: 44571/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5094698987945984
Fixes: 44607/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5341352013987840
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 151f83584e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:13:56 +01:00
Michael Niedermayer
2bd1b04233
avcodec/motion_est: fix indention of ff_get_best_fcode()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ce43e1c581
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:12:39 +01:00
Michael Niedermayer
d2afa2b033
avcodec/motion_est: Fix xy indexing on range violation in ff_get_best_fcode()
...
This codepath seems untested, no testcases change
Found-by: <mkver>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 634312a70f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:11:58 +01:00
Michael Niedermayer
e816333c55
avcodec/jpeglsdec: Increase range for N in ls_get_code_runterm() by using unsigned
...
Fixes: left shift of 32768 by 16 places cannot be represented in type 'int'
Fixes: Timeout
Fixes: 44219/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMVJPEG_fuzzer-4679455379947520
Fixes: 44088/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMVJPEG_fuzzer-4885976600674304
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 6ee283d7d0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:10:55 +01:00
Michael Niedermayer
2437e69aec
avformat/matroskadec: Check desc_bytes
...
Fixes: Division by 0
Fixes: 44035/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-4826721386364928
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 5038933977
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:10:30 +01:00
Michael Niedermayer
de04027679
avformat/utils: Fix invalid NULL pointer operation in ff_parse_key_value()
...
Fixes: pointer index expression with base 0x000000000000 overflowed to 0xffffffffffffffff
Fixes: 44012/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-5670607746891776
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 59328aabd2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 20:09:36 +01:00
Michael Niedermayer
437cd15ae3
avformat/matroskadec: Fix infinite loop with bz decompression
...
The same check is added to zlib too, it seems not needed there though
Fixes: Infinite loop
Fixes: 43932/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6175167573786624
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 9c3d2cbb51
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 18:57:03 +01:00
Michael Niedermayer
ea9125a43f
avformat/mov: Check size before subtraction
...
Fixes: signed integer overflow: -9223372036854775808 - 8 cannot be represented in type 'long'
Fixes: 43542/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5237670148702208
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 d8d9d506a3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-16 18:55:58 +01:00
Michael Niedermayer
9a1fa28965
avcodec/apedec: Fix integer overflows in predictor_update_3930()
...
Fixes: signed integer overflow: 1074134419 - -1075212485 cannot be represented in type 'int'
Fixes: 43273/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-4706880883130368
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 0c9c9bbd01
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 23:23:25 +01:00
Michael Niedermayer
fae588692c
avcodec/apedec: fix integer overflow in 8bit samples
...
Fixes: signed integer overflow: 2147483542 + 128 cannot be represented in type 'int'
Fixes: 42812/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6344057861832704
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 7cee3b3718
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 23:13:05 +01:00
Michael Niedermayer
d3abd961ee
avformat/flvdec: timestamps cannot use the full int64 range
...
We do not support this as we multiply by 1000
Fixes: signed integer overflow: -45318575073853696 * 1000 cannot be represented in type 'long'
Fixes: 42804/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-4630325425209344
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 c217ca7718
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 23:10:59 +01:00
Michael Niedermayer
357c339a84
avcodec/vqavideo: reset accounting on error
...
Fixes: Timeout (same growing chunk is decoded to failure repeatedly)
Fixes: 42582/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VQA_fuzzer-6531195591065600
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 d8ea7a67ba
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 23:06:12 +01:00
Michael Niedermayer
9b5d10d744
avformat/4xm: Check for duplicate track ids
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit dd94912479
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 22:50:52 +01:00
Michael Niedermayer
e10f67a6e6
avformat/4xm: Consider max_streams on reallocating tracks array
...
Fixes: OOM
Fixes: 41595/clusterfuzz-testcase-minimized-ffmpeg_dem_FOURXM_fuzzer-6355979363549184
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 0dcd95ef8a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 22:50:19 +01:00
Michael Niedermayer
18c74f2e72
avformat/mov: Check next offset in mov_read_dref()
...
Fixes: signed integer overflow: 9223372036200463215 + 1109914409 cannot be represented in type 'long'
Fixes: 41480/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6553086177443840
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 562021e2fd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-01-13 22:46:54 +01:00