FFmpeg/libavformat
Andreas Rheinhardt 5aafdb4e5f avformat/rmdec: Fix potential crash on allocation failure
The RealMedia demuxer uses the priv_data of its streams to store a
structure containing an AVPacket. These packets are unreferenced in the
read_close function, yet said function simply presumed that the
priv_data has been successfully allocated. This implies that it mustn't
be called when an allocation of priv_data fails; but this can happen
since commit 35bbc1955a58ba74552c50d9161084644f00bbd3 if one has a
stream with multiple substreams (also exported as AVStream) and if
allocating the priv_data for one of these substreams fails.

This has been fixed by making sure that read_close can handle the case
in which priv_data has not been successfully allocated.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-09-19 20:26:53 +02:00
..
2020-09-18 11:34:11 +02:00
2020-09-18 11:34:11 +02:00
2020-08-18 07:03:00 +02:00
2020-09-04 16:01:53 +02:00
2020-09-18 11:30:03 +02:00
2020-09-18 11:34:11 +02:00
2020-09-03 18:11:00 +02:00
2020-09-12 17:27:26 +08:00
2020-09-03 18:03:18 +02:00
2020-09-13 16:05:01 +02:00
2020-09-18 11:34:11 +02:00
2020-07-26 16:47:01 +02:00