Go to file
Andreas Rheinhardt f93ca3a278 avcodec/vp9_superframe_bsf: Check for existence of data before reading it
Packets without data need to be handled specially in order to avoid
undefined reads. Pass these packets through unchanged in case there
are no cached packets* and error out in case there are cached packets:
Returning the packet would mess with the order of the packets;
if one returned the zero-sized packet before the superframe that will
be created from the packets in the cache, the zero-sized packet would
overtake the packets in the cache; if one returned the packet later,
the packets that complete the superframe will overtake the zero-sized
packet.

*: This case e.g. encompasses the scenario of updated extradata
side-data at the end.

Fixes: Out of array read
Fixes: 45722/clusterfuzz-testcase-minimized-ffmpeg_BSF_VP9_SUPERFRAME_fuzzer-5173378975137792

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit c12e8c97b1)
2022-04-01 13:20:56 +02:00
compat Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
doc doc/utils: add missing 22.2 layout entry 2022-03-28 20:36:04 -03:00
ffbuild Makefile: Redo duplicating object files in shared builds 2022-01-04 05:01:04 +01:00
fftools fftools/cmdutils: Fix undefined 1 << 31 2022-01-11 00:24:23 +01:00
libavcodec avcodec/vp9_superframe_bsf: Check for existence of data before reading it 2022-04-01 13:20:56 +02:00
libavdevice avdevice/iec61883: #if unused code away, fix -O0 compilation 2022-01-08 19:11:17 +01:00
libavfilter vf_tonemap: Fix order of planes 2022-01-14 16:34:01 +01:00
libavformat avformat/imf: fix packet pts, dts and muxing 2022-03-31 21:28:42 +10:00
libavutil avutil/parseutils: use quadhd for Quad HD 2022-01-12 17:54:19 +08:00
libpostproc lib*/version.h: Bump Versions before release/5.0 branch 2022-01-04 13:40:03 +01:00
libswresample lib*/version.h: Bump Versions before release/5.0 branch 2022-01-04 13:40:03 +01:00
libswscale swscale/output: use isSwappedChroma 2022-01-04 20:01:10 -06:00
presets
tests fate/ffmpeg: add missing samples dependency to fate-shortest 2022-01-16 00:34:11 -03:00
tools tools/target_dec_fuzzer: Adjust threshold for prores 2021-12-16 21:06:47 +01:00
.gitattributes
.gitignore build: detect Metal.framework and build .metal files 2021-12-18 11:55:47 -08:00
.mailmap
.travis.yml
Changelog Changelog: replace <next> by 5.0 2022-01-05 08:39:53 -03:00
configure configure: link to libatomic when it's present 2022-01-21 09:40:55 +01:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add my gpg fingerprint 2021-12-23 09:25:16 +08:00
Makefile Makefile: Redo duplicating object files in shared builds 2022-01-04 05:01:04 +01:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE Update versions for 5.0 2022-01-03 22:21:12 +01:00
RELEASE_NOTES RELEASE_NOTES: Based on the version from 4.3 2022-01-14 19:43:55 +01:00

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides means to alter decoded audio and video through a directed graph of connected filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.