diff options
author | wm4 <[email protected]> | 2015-06-17 00:21:02 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2015-06-17 01:13:19 +0200 |
commit | dc87758775e2ce8be84e4fe598e12416e83d2845 (patch) | |
tree | 8ca3c715e1b3ef73a3fdb239665bc7f72a8f344f /libavformat/allformats.c | |
parent | e29d996149692f2ec80c6f20f6a427c7287ab9a4 (diff) |
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 <[email protected]>
Diffstat (limited to 'libavformat/allformats.c')
0 files changed, 0 insertions, 0 deletions