[FFmpeg-devel] [PATCH] *alloc(type)

Michael Niedermayer michaelni
Sat Nov 20 04:37:30 CET 2010


Hi

patchset below fixes the type used in malloc and co
The sense behind this patch is that feeding things that dont fit in unsigned
int into *alloc() can lead to successfull allocation of too small arrays which
is pretty bad.
There are probably more functions that should be changed like av_new_packet()
but i had to start somewhere and will look into the others too if noone else
does.
Note, i will apply this in a few days if there are no objections


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-the-argument-of-memory-allocation-functions-f.patch
Type: text/x-patch
Size: 2735 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101120/d1d4b66a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-the-argument-of-memory-allocation-functions-f.patch
Type: text/x-patch
Size: 3191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101120/d1d4b66a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101120/d1d4b66a/attachment.pgp>



More information about the ffmpeg-devel mailing list