[FFmpeg-devel] [PATCH] oggparsevorbis: use av_realloc consistently

Michael Niedermayer michaelni at gmx.at
Wed Jan 30 20:09:16 CET 2013


On Thu, Jan 10, 2013 at 10:24:01AM -0800, Paweł Hajdan, Jr wrote:
> From: "Paweł Hajdan, Jr" <phajdan at google.com>
> 
> Memory passed to av_realloc cannot be allocated using memalign.
> 
> From realloc(3):
> 
> The realloc() function changes the size of the memory block pointed to
> by ptr to size bytes. (...) Unless ptr is NULL, it must have been returned
> by an earlier call to malloc(), calloc() or realloc().
> 
> The issue has been found by debugallocation, a part of google-perftools:
> http://code.google.com/p/gperftools/ .
> 
> Signed-off-by: Paweł Hajdan, Jr <phajdan at google.com>
> ---
>  libavformat/oggparsevorbis.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

patch applied

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130130/f2574438/attachment.asc>


More information about the ffmpeg-devel mailing list