[FFmpeg-devel] Memory allocation failure

Ramiro Polla ramiro.polla
Sun Sep 6 04:41:18 CEST 2009


Hi,

While testing some memory allocation failures I thought about checking
how far FFmpeg goes without segfaulting when some av_malloc() call
fails.

With malloc_errors_test.diff I tested from 1 up to 127 and then got
bored. In malloc_errors.diff there are the changes I was making. Some
were trivial, some I didn't know what to do and just commented on.
Thoroughly checking for malloc return value errors would take so long
I gave up.

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc_errors_test.diff
Type: text/x-diff
Size: 1635 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090905/7b63dd13/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc_errors.diff
Type: text/x-diff
Size: 8115 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090905/7b63dd13/attachment-0001.diff>



More information about the ffmpeg-devel mailing list