Skip to Content.
Sympa Menu

charm - Re: [charm] ckerr memory overflow

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] ckerr memory overflow


Chronological Thread 
  • From: Gengbin Zheng <zhenggb AT gmail.com>
  • To: Tom Quinn <trq AT astro.washington.edu>
  • Cc: charm AT cs.uiuc.edu
  • Subject: Re: [charm] ckerr memory overflow
  • Date: Fri, 26 Mar 2010 15:26:19 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

I checked in a fix (based on Orion's change) in charm++ repository.

Gengbin


On Wed, Mar 24, 2010 at 4:19 PM, Tom Quinn
<trq AT astro.washington.edu>
wrote:
> "ckerr << string;" can trash memory with long strings.  There is
> a small buffer which is used by an sprintf().  Using a string greater
> than 1024 will overflow this buffer and cause memory corruption.  It would
> be a good idea to use "snprintf()" to avoid this.
>
> Tom Quinn       Astronomy, University of Washington
> Internet:      
> trq AT astro.washington.edu
> Phone:          206-685-9009
> _______________________________________________
> charm mailing list
> charm AT cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/charm
>
>





Archive powered by MHonArc 2.6.16.

Top of Page