This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch for: malloc(0) during exception throw & catch


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
----------------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]