This is the mail archive of the gcc-prs@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: c/3766: malloc


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


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