• Herve W's avatar
    * Allocating 16 bytes more for the MEMALIGN_HACK is enough. There's no · a9493601
    Herve W authored
    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
    a9493601
Name
Last commit
Last update
doc Loading commit data...
libavcodec Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
postproc Loading commit data...
tests Loading commit data...
vhook Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
berrno.h Loading commit data...
build_avopt Loading commit data...
clean-diff Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
cws2fws.c Loading commit data...
ffinstall.nsi Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
output_example.c Loading commit data...
pktdumper.c Loading commit data...
qt-faststart.c Loading commit data...
unwrap-diff Loading commit data...
version.sh Loading commit data...
xvmc_render.h Loading commit data...