diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-18 23:04:37 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 00:28:21 +0100 |
commit | f9043de99a23e35a34c79bfbc9ef17b27f7236d1 (patch) | |
tree | 55998d87f8a5ae494e777e9dddc1587be38b811b /libavfilter | |
parent | 484a322f0a01d50175a5819b5f5925891dd45240 (diff) | |
download | ffmpeg-f9043de99a23e35a34c79bfbc9ef17b27f7236d1.tar.gz |
avformat/webpenc: Fix memleak when using invalid packets
The WebP muxer sometimes caches a packet it receives to write it later;
yet if a cached packet is too small (so small as to be invalid),
it is cached, but not written and not unreferenced. Such a packet leaks,
either by being overwritten by the next packet or because it is never
unreferenced at all.
Fix this by not caching unusable packets at all; and error out on
invalid packets.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter')
0 files changed, 0 insertions, 0 deletions