This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/3766: malloc
- To: nobody at gcc dot gnu dot org
- Subject: Re: c/3766: malloc
- From: Andreas Jaeger <aj at suse dot de>
- Date: 23 Jul 2001 05:46:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Andreas Jaeger <aj at suse dot de>
The following reply was made to PR c/3766; it has been noted by GNATS.
From: Andreas Jaeger <aj@suse.de>
To: hankh@dacom.net
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/3766: malloc
Date: Mon, 23 Jul 2001 07:05:13 +0200
hankh@dacom.net writes:
>>Number: 3766
>>Category: c
>>Synopsis: malloc
>
> But it generate core file in malloc().
> I use calloc() instead of malloc. but it crashed.
You're crashing the internal malloc data structures, e.g. you
overwrite more memory than you allocate or call free twice.
Please fix your program,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj