[FFmpeg-devel] [PATCH] libopenjpegenc: add NULL check for img before accessing it

Michael Niedermayer michaelni at gmx.at
Mon Jun 1 15:15:13 CEST 2015

On Mon, Jun 01, 2015 at 12:57:25AM +0200, Andreas Cadhalpun wrote:
> If opj_image_create fails to allocate an image it returns NULL, which
> causes a segmentation fault at 'img->x0 = 0'.
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/libopenjpegenc.c | 3 +++
>  1 file changed, 3 insertions(+)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- 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/20150601/1f666252/attachment.asc>

More information about the ffmpeg-devel mailing list