[FFmpeg-cvslog] avcodec/exr: fix null pointer dereference

Michael Niedermayer git at videolan.org
Sat Oct 19 23:33:40 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 19 23:28:08 2013 +0200| [80b1e1c03d26ade05b0f53d0731aa7398d4ef6f9] | committer: Michael Niedermayer

avcodec/exr: fix null pointer dereference

Fixes CID1108582

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80b1e1c03d26ade05b0f53d0731aa7398d4ef6f9
---

 libavcodec/exr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 6383302..ef4fc36 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -562,7 +562,7 @@ static int huf_uncompress(GetByteContext *gb,
 
 fail:
     for (i = 0; i < HUF_DECSIZE; i++) {
-        if (hdec[i].p)
+        if (hdec)
             av_freep(&hdec[i].p);
     }
 



More information about the ffmpeg-cvslog mailing list