This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for: malloc(0) during exception throw & catch
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: Patch for: malloc(0) during exception throw & catch
- From: Denis Perchine <dyp at perchine dot com>
- Date: Wed, 31 May 2000 17:27:10 +0700
- References: <00052820453207.06045@p7>
Could someone check this in, or say that the patch is wrong?
On Вск, 28 Май 2000, you wrote:
> Problem was discussed in gcc@gcc.gnu.org. And I'm submitting a patch to solve it.
> If it will not be fixed it is very hard to debug programs because some debug tools
> like ElectricFence will just exit when get into such situation.
>
> Index: frame.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/frame.c,v
> retrieving revision 1.36
> diff -r1.36 frame.c
> 62c62
> < accu->linear.array = (fde **) malloc (sizeof (fde *) * count);
> ---
> > accu->linear.array = count ? (fde **) malloc (sizeof (fde *) * count) : NULL;
>
>
> --
> Sincerely Yours,
> Denis Perchine
>
> ----------------------------------
> E-Mail: dyp@perchine.com
> HomePage: http://www.perchine.com/dyp/
> FidoNet: 2:5000/120.5
> ----------------------------------
--
Sincerely Yours,
Denis Perchine
----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------