[FFmpeg-devel] [PATCH] lavu: add a feature to test memory allocation failure.

Michael Niedermayer michaelni at gmx.at
Thu Feb 6 02:49:16 CET 2014


On Wed, Jan 08, 2014 at 08:53:43PM +0100, Michael Niedermayer wrote:
> On Sun, Dec 29, 2013 at 07:11:05PM +0100, Nicolas George wrote:
> > Currently only works on GNU due to the use of glibc-specific
> > backtrace utilities.
> > 
> > Signed-off-by: Nicolas George <george at nsup.org>
> > ---
> >  configure               |   7 +++
> >  libavutil/Makefile      |   1 +
> >  libavutil/malloc_fail.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++++
> >  libavutil/malloc_fail.h |  61 ++++++++++++++++++++++++
> >  libavutil/mem.c         |  11 +++++
> >  tools/mallocfail        | 114 ++++++++++++++++++++++++++++++++++++++++++++
> >  6 files changed, 316 insertions(+)
> >  create mode 100644 libavutil/malloc_fail.c
> >  create mode 100644 libavutil/malloc_fail.h
> >  create mode 100755 tools/mallocfail
> [...]
> > diff --git a/tools/mallocfail b/tools/mallocfail
> > new file mode 100755
> > index 0000000..513224e
> > --- /dev/null
> > +++ b/tools/mallocfail
> > @@ -0,0 +1,114 @@
> > +#!/usr/bin/perl
> > +
> > +# Copyright (c) 2013 Nicolas George
> > +#
> > +# This file is part of FFmpeg.
> > +#
> > +# FFmpeg is free software; you can redistribute it and/or
> > +# modify it under the terms of the GNU Lesser General Public License
> > +# as published by the Free Software Foundation; either
> > +# version 2.1 of the License, or (at your option) any later version.
> > +#
> > +# FFmpeg is distributed in the hope that it will be useful,
> > +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> > +# GNU Lesser General Public License for more details.
> > +#
> > +# You should have received a copy of the GNU Lesser General Public License
> > +# along with FFmpeg; if not, write to the Free Software Foundation, Inc.,
> > +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> > +
> > +use strict;
> > +use warnings;
> > +use Config;
> > +use Socket;
> > +use Fcntl;
> > +
> > +=pod
> > +
> > +=head1 NAME
> > +
> > +mallocfail - server for the malloc-fail feature
> > +
> > +=head1 SYNOPSIS
> > +
> > +tools/make_chlayout_test I<script> I<command> I<options>
> 
> make_chlayout_test ?

shouldnt this be tools/mallocfail ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- 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/20140206/9bb07160/attachment.asc>


More information about the ffmpeg-devel mailing list