[FFmpeg-devel] [PATCH] check for null pointer in nuv decoder (issue 2524)

Daniel Kang daniel.d.kang
Mon Jan 10 04:32:02 CET 2011

In decode_init in the nuv decoder, c->decomp_buf is set to NULL. In most
cases, this is okay, as the buffer is reallocated. However, for invalid
nuv files, ffmpeg does not reallocate the buffer. In this case, ffmpeg
will crash when trying to access the null pointer. The patch attached
adds a check for this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nuv_null_pointer_check.diff
Type: application/octet-stream
Size: 1025 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110109/cee28e41/attachment.obj>

More information about the ffmpeg-devel mailing list