Commit Graph

98219 Commits

Author SHA1 Message Date
openharmony_ci
20632f8bc7 !18 fix cve issues
Merge pull request !18 from appoe/master
2021-11-05 07:43:14 +00:00
appoe
f480a257d1 [PATCH][CVE-2021-38291]avcodec/utils: don't return negative values in av_get_audio_frame_duration()
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 08:33:31 +00:00
appoe
5378430c39 [PATCH][CVE-2020-35965]avcodec/exr: Check ymin vs. h
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 07:39:33 +00:00
appoe
60dbd8db02 [PATCH][CVE-2020-35964]avformat/vividas: improve extradata packing checks in track_header()
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 07:35:35 +00:00
appoe
4fc5d7d3cc [PATCH][CVE-2020-22042]fftools/ffmpeg: Fix leak of AVFilterInOut in case of error
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 07:31:59 +00:00
appoe
d3cdec1fc9 [PATCH][CVE-2020-22038]avcodec/v4l2_m2m: adapt to call close() on init fail
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 07:29:07 +00:00
openharmony_ci
d0e6d8a430 !19 【轻量级 PR】:add encoder mpeg4
Merge pull request !19 from appoe/N/A
2021-11-04 06:10:45 +00:00
appoe
9551cdd277 add encoder mpeg4
Signed-off-by: appoe <1029040451@qq.com>
2021-11-04 02:56:17 +00:00
appoe
cc89a579fc [PATCH][CVE-2020-22037]avcodec/frame_thread_encoder: Free AVCodecContext structure on error during init
Signed-off-by: appoe <1029040451@qq.com>
2021-11-03 12:07:02 +00:00
appoe
c10c48e3a9 [PATCH][CVE-2020-22021]avfilter/vf_yadif: Fix handing of tiny images
Signed-off-by: appoe <1029040451@qq.com>
2021-11-03 11:40:34 +00:00
openharmony_ci
9c88d88105 !15 [Lightweight PR]: remove unsupport format
Merge pull request !15 from appoe/N/A
2021-11-01 11:10:06 +00:00
appoe
ab576d91e9 remove unsupport format
Signed-off-by: appoe <1029040451@qq.com>
2021-11-01 09:51:42 +00:00
appoe
c4fa171b7a [PATCH][CVE-2020-22019]avfilter/vf_vmafmotion: Check dimensions
Signed-off-by: appoe <1029040451@qq.com>
2021-10-30 09:11:43 +00:00
openharmony_ci
c31612dd0e !14 change gstreamer build to media
Merge pull request !14 from appoe/master
2021-10-12 12:22:14 +00:00
appoe
599016e95c change gstreamer build to media
Signed-off-by: appoe <1029040451@qq.com>
2021-10-12 03:20:56 +00:00
openharmony_ci
3be34daaea !12 [Lightweight PR]: add binary filter
Merge pull request !12 from appoe/N/A
2021-09-29 01:20:25 +00:00
appoe
11817c6a63 add binary filter
Signed-off-by: appoe <1029040451@qq.com>
2021-09-28 12:16:05 +00:00
openharmony_ci
ef93befdfd !10 【轻量级 PR】:add oat and opensource readme
Merge pull request !10 from appoe/N/A
2021-09-26 06:10:46 +00:00
appoe
0db6bd4f74 add oat and opensource readme
Signed-off-by: appoe <1029040451@qq.com>
2021-09-26 03:20:53 +00:00
openharmony_ci
dd2457847b !8 【轻量级 PR】:add aac enc into compile
Merge pull request !8 from appoe/N/A
2021-08-31 10:52:02 +00:00
appoe
4b9cd65397 add aac enc into compile
Signed-off-by: appoe <1029040451@qq.com>
2021-08-28 01:35:42 +00:00
openharmony_ci
f9145eca57 !6 【轻量级 PR】:fix ffmpeg 64bit compile
Merge pull request !6 from appoe/N/A
2021-08-19 12:19:01 +00:00
appoe
b3c9412aac fix ffmpeg 64bit compile
Signed-off-by: appoe <1029040451@qq.com>
2021-08-19 11:15:32 +00:00
openharmony_ci
4f288b3f8d !4 【轻量级 PR】:fix ffmpeg compile issue for VALGRIND environment
Merge pull request !4 from appoe/N/A
2021-08-18 04:04:07 +00:00
appoe
58a118e49b fix ffmpeg compile issue for VALGRIND environment
Signed-off-by: appoe <1029040451@qq.com>
2021-08-17 02:47:50 +00:00
openharmony_ci
075dbb970a !3 【轻量级 PR】:fix musl build
Merge pull request !3 from appoe/N/A
2021-07-30 11:02:46 +00:00
appoe
9a5ea0cc02 fix musl build
Signed-off-by: appoe <1029040451@qq.com>
2021-07-30 08:18:37 +00:00
openharmony_ci
4aa262aa11 !2 add ffmpeg into version build
Merge pull request !2 from appoe/addbuild
2021-07-22 14:21:33 +00:00
appoe
cffa387350 add ffmpeg into version build
Signed-off-by: appoe <1029040451@qq.com>
2021-07-22 21:55:44 +08:00
Michael Niedermayer
6b6b9e593d Changelog: update
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-11 00:26:17 +02:00
Michael Niedermayer
5086d22697 avcodec/tiff: Check input space in dng_decode_jpeg()
Fixes: out of array read
Fixes: 24034/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5111884337119232

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 79e8d17024e6c6328a40fcee191ffd70798a9c6e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-11 00:25:33 +02:00
Michael Niedermayer
3c4679c430 avcodec/mjpeg_parser: Adjust size rejection threshold
Fixes: 86987846-429c8d80-c197-11ea-916b-bb4738e09687.jpg
Fixes: Regression since ec3d8a0e69

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dde60772970ed663b85d475e741013a0222decda)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-11 00:25:33 +02:00
Michael Niedermayer
832652a9d1 avcodec/cbs_jpeg: Fix uninitialized end index in cbs_jpeg_split_fragment()
Fixes: Out of array read
Fixes: 24043/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5084566275751936.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 4a10bc8f6f5d600c44ecb9b43cd9abf13bf3bfae)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-11 00:25:33 +02:00
Andreas Rheinhardt
9ee65bf88d avformat/sdp: Fix potential write beyond end of buffer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 5d91b7718efc581da8882a4e9bf2f5953e41adbf)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-10 20:52:00 +02:00
Andreas Rheinhardt
be84216c53 avformat/mm: Check for existence of audio stream
No audio stream is created unconditionally and if none has been created,
no packet with stream_index 1 may be returned. This fixes an assert in
ff_read_packet() in libavformat/utils reported in ticket #8782.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit ec59dc73f0cc8930bf5dae389cd76d049d537ca7)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-10 20:52:00 +02:00
Michael Niedermayer
401b59e4c3 Update for 4.3.1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 22:17:30 +02:00
Zhao Zhili
d4ced9ebb7 avformat/mov: Fix unaligned read of uint32_t and endian-dependance in mov_read_default
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 806a4d5187aeb82b97898683242886ed1e84f894)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
b021eba8b6 avcodec/apedec: Fix undefined integer overflow with 24bit
Fixes: signed integer overflow: 8683744 * 256 cannot be represented in type 'int'
Fixes: 23527/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5679885932822528

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 9f7b252cdf2d0e0f79d16dc7cd575d1884239863)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
093c2dd644 avcodec/loco: Fix integer overflow with large values from loco_get_rice()
Fixes: signed integer overflow: 155 + 2147483647 cannot be represented in type 'int'
Fixes: 23421/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LOCO_fuzzer-5652849097965568

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 3ddc5e1f3cebca25ade54ee68159d305f210bf5f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
99eb08f390 avformat/smjpegdec: Check the existence of referred streams
Fixes: Assertion failure
Fixes: 23758/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5160954605338624.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 321ea59dac6538f92206bab0a2688fa24a25c4d2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
b228e0c5f6 avcodec/tiff: Check frame parameters before blit for DNG
Fixes: out of array access
Fixes: 23888/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-6021365974171648.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 4091f4f78012d1a7eb1e04b69cf65d5ef3afee3a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
11a10e30a9 avcodec/mjpegdec: Limit bayer to single plane outputting format
This reduces the number of paths reachable with DNG and should
improve security

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 865a34970e73b9c23e33fd6dc6ba046d4e821519)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
f98f29de5e avcodec/pnmdec: Fix misaligned reads
Found-by: "Steinar H. Gunderson" <steinar+ffmpeg@gunderson.no>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ea28ce9bc13803ccef97850388ddc9a73998a23e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
531ddbacb5 avcodec/mv30: Fix integer overflows in idct2_1d()
Fixes: signed integer overflow: 6500736 * 473 cannot be represented in type 'int'
Fixes: 23259/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5179394271477760

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 3b8d5bcc3189c6c46279889f1176c0caba4466e4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
d25345bb00 avcodec/hcadec: Check total_band_count against imdct_in size
Fixes: index 128 out of bounds for type 'float [128]'
Fixes: 23465/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCA_fuzzer-5089866596745216

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 2d96c945312d3f62e3f872bfb51a593afb40e09a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
1ff86cb452 avcodec/scpr3: Fix out of array access with dectab
Fixes: 23721/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5914074721550336

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 c8de8dfba6b2706f22214489b1779fb0d27e7e65)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
f1ebea7c91 avcodec/tiff: Do not overrun the array ends in dng_blit()
Fixes: out of array access
Fixes: 23589/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5110559589793792.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 f35caea77f76c62bd0e392e514a84833ab1e0c83)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Michael Niedermayer
c86a9d5b82 avcodec/dstdec: Replace AC overread check by sample rate check
Real files do skip coding 0 bits at the end, thus this kind of check
does not work reliable.

Fixes: Ticket 8770
Fixes: dst-256fs44-6ch-refdstencoder.dff

The samplerate is specified in ISO/IEC 14496-3:2005(E) as one of 3 fixed
values, this also can be used to limit the duration and avoid the timeout

This reverts commit f6df99dba1.

(cherry picked from commit 1679f23beb3cfc3639352b3cbe7c08c00189c6b0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Reimar Döffinger
1f32d8ea23 dnn_backend_native: Add overflow check for length calculation.
We should not silently allocate an incorrect sized buffer.
Fixes trac issue #8718.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
2020-07-06 20:25:50 +08:00
Andreas Rheinhardt
7cbb6ee2ee avcodec/h264_metadata_bsf: Fix invalid av_freep
This bug was introduced in 3c8a2a1180.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 04e06beb0ab98a6eb85df32f7809b1143e4bebe7)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-04 22:33:21 +02:00