[FFmpeg-devel] [PATCH] diracdec: check if reference could not be allocated

Michael Niedermayer michaelni at gmx.at
Wed May 6 02:26:49 CEST 2015


On Tue, May 05, 2015 at 11:51:48PM +0200, Andreas Cadhalpun wrote:
> s->ref_pics[i] is later used as ref argument of interpolate_refplane,
> where it is dereferenced.
> 
> If it is NULL, it causes a segmentation fault.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/diracdec.c | 6 ++++++
>  1 file changed, 6 insertions(+)

applied

though i would also prefer more expressive error codes

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150506/80b5b7eb/attachment.asc>


More information about the ffmpeg-devel mailing list