]> git.sesse.net Git - ffmpeg/commit
* Allocating 16 bytes more for the MEMALIGN_HACK is enough. There's no
authorHerve W <H.O.W.aka.V+ffmpeg@gmail.com>
Fri, 30 Jun 2006 08:00:01 +0000 (08:00 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 30 Jun 2006 08:00:01 +0000 (08:00 +0000)
commita9493601638b048c44751956d2360f215918800c
tree19720b7ab05d77cc14d52922f33f94a94f649698
parent3a6fc8faf35c84896f069c55e666120807ce65df
* Allocating 16 bytes more for the MEMALIGN_HACK is enough. There's no
need for 1 more extra byte.

* Checking whether the to be allocated size is larger than INT_MAX,
doesn't assure that size+16 bytes for the MEMALIGN_HACK isn't larger
than INT_MAX.

* malloc might return NULL. Checking for it before using that pointer
seems like a good idea.
Patch by Herve W. H PPP O PPP W PPP aka PPP V+ffmpeg AH gmail PPP com
Original thread:
Date: Jun 29, 2006 1:21 PM
Subject: [Ffmpeg-devel] [PATCH] minor improvements to libavcodec/mem.c

Originally committed as revision 5559 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mem.c