aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhd_parser.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-06-17 00:21:02 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 04:43:40 +0200
commitc049e979b60542c53894e812d5921a455b7c16a3 (patch)
treefbfd47ebde517673132666403a2c08567f41dcfb /libavcodec/dnxhd_parser.c
parent7b1c5fa5e5790eb4649287f53f8ade496f596661 (diff)
downloadffmpeg-c049e979b60542c53894e812d5921a455b7c16a3.tar.gz
avio: fix potential crashes when combining ffio_ensure_seekback + crc
Calling ffio_ensure_seekback() if ffio_init_checksum() has been called on the same context can lead to out of bounds memory accesses and crashes. The reason is that ffio_ensure_seekback() does not update checksum_ptr after reallocating the buffer, resulting in a dangling pointer. This effectively fixes potential crashes when opening mp3 files. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit dc87758775e2ce8be84e4fe598e12416e83d2845) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dnxhd_parser.c')
0 files changed, 0 insertions, 0 deletions