FFmpeg git repo
Go to file
Andreas Cadhalpun 4e4708ad80 apedec: prevent out of array writes in decode_array_0000
s->decoded_buffer is allocated with a min_size of:
    2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer)

Then it is assigned to s->decoded[0] (and s->decoded_buffer + FFALIGN(blockstodecode, 8)
to s->decoded[1]) and passed as out buffer to decode_array_0000.

In this function 64 elements of the out buffer are written
unconditionally and outside the array if blockstodecode is too small.

This causes memory corruption, leading to segmentation faults or other
crashes.

Thus change decode_array_0000 to write at most blockstodecode elements
of the out buffer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 699341d647)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-05-19 21:08:36 +02:00
compat
doc tests: drop bc dependency 2015-05-14 04:08:10 +02:00
libavcodec apedec: prevent out of array writes in decode_array_0000 2015-05-19 21:08:36 +02:00
libavdevice
libavfilter lavfi/fade: Do not overread input buffer. 2015-05-17 12:47:33 +02:00
libavformat avformat/mpegts: Detect changes in packet through CRC instead of just the 5bit version 2015-05-19 20:57:48 +02:00
libavresample Merge commit '744d813bcf527481f2217428fa08bfee8642935b' into release/2.4 2015-05-19 21:07:02 +02:00
libavutil avutil/pca: Check for av_malloc* failures 2015-04-25 15:06:54 +02:00
libpostproc
libswresample swresample/swresample-test: Randomly wipe out channel counts 2015-04-25 15:06:54 +02:00
libswscale
presets
tests tests: drop bc dependency 2015-05-14 04:08:10 +02:00
tools
.gitattributes
.gitignore
arch.mak
Changelog Changelog, fix typos 2015-04-26 17:47:03 +02:00
cmdutils_common_opts.h
cmdutils_opencl.c
cmdutils.c
cmdutils.h
common.mak
configure
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_dxva2.c
ffmpeg_filter.c
ffmpeg_opt.c Merge commit '420aa06a2487469259a04f9be66fd15535372796' into release/2.4 2015-04-05 16:08:29 +02:00
ffmpeg_vda.c
ffmpeg_vdpau.c
ffmpeg.c Merge commit '420aa06a2487469259a04f9be66fd15535372796' into release/2.4 2015-04-05 16:08:29 +02:00
ffmpeg.h
ffplay.c
ffprobe.c
ffserver.c
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE Update for FFmpeg 2.4.9 release 2015-04-25 17:10:18 +02:00
RELEASE_NOTES
version.sh

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 a mean to alter decoded Audio and Video through chain of 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 analisys 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

Conding examples are available in the doc/example directory.

License

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