[FFmpeg-devel] [PATCH 1/3] avformat/utils: Fix memleaks

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Tue Aug 20 01:04:00 EEST 2019


Andreas Rheinhardt:
> ff_read_packet had several potential memleaks:
> 1. If av_packet_make_refcounted fails, it means that the packet is not
> refcounted, but it could nevertheless carry side data and therefore
> needs to be unreferenced.
> 2. If a packet happens to have an illegal stream index (i.e. one that
> does not correspond to a stream), it should nevertheless be
> unreferenced.
> 3. If putting a packet on a packet list fails, it wasn't unreferenced.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
This patchset has been superseded by
https://ffmpeg.org/pipermail/ffmpeg-devel/2019-August/248560.html.

- Andreas



More information about the ffmpeg-devel mailing list