wm4 a4a87a7efd avcodec/dvdsubdec: fix accessing dangling pointers
dvdsub_decode() can call append_to_cached_buf() 2 times, the second time
with ctx->buf as argument. If the second append_to_cached_buf() reallocs
ctx->buf, the argument will be a pointer to the previous, freed block.
This can cause invalid reads at least with some fuzzed files - and
possibly with valid files.

Since packets can apparently not be larger than 64K (even if packets are
combined), just use a fixed size buffer. It will be allocated as part of
the DVDSubContext, and although some memory is "wasted", it's relatively
minimal by modern standards and should be acceptable.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 816577716b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-01-08 18:04:33 +01:00
2014-12-08 19:27:19 +01:00
2014-11-01 15:40:38 +01:00
2012-05-04 18:40:36 +02:00
2013-12-29 22:57:20 +01:00
2015-01-06 20:40:50 +01:00
2011-04-08 02:50:13 +02:00
2014-03-01 03:34:59 +01:00
2012-04-06 10:23:26 +02:00
2014-12-08 19:27:19 +01:00

FFmpeg README
-------------

1) Documentation
----------------

* Read the documentation in the doc/ directory in git.
  You can also view it online at http://ffmpeg.org/documentation.html

2) Licensing
------------

* See the LICENSE file.

3) Build and Install
--------------------

* See the INSTALL file.
S
Description
Automated Windows Builds for FFmpeg
Readme 322 MiB
Languages
Diff 100%