diff options
author | James Almer <jamrial@gmail.com> | 2016-11-19 12:38:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-11-19 20:24:23 -0300 |
commit | 492bbe58902ddf7f9085f13345fd01098c44c6de (patch) | |
tree | 77a934bbb1da83a4a80dc414ac9445d9f62b33e8 /libavcodec/arm/vorbisdsp_neon.S | |
parent | 5771a0c8237d6fb0fb65877126ec0f7842fd2a1e (diff) | |
download | ffmpeg-492bbe58902ddf7f9085f13345fd01098c44c6de.tar.gz |
avcodec/avpacket: fix leak on realloc in av_packet_add_side_data()
If realloc fails, the pointer is overwritten and the previously allocated
buffer is leaked, which goes against the expected behavior of keeping the
packet unchanged in case of error.
Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 574929d8b6de32ae712fcca7ab09f01a3e4616be)
Diffstat (limited to 'libavcodec/arm/vorbisdsp_neon.S')
0 files changed, 0 insertions, 0 deletions