Skip to Content.
Sympa Menu

charm - [charm] ckerr memory overflow

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] ckerr memory overflow


Chronological Thread 
  • From: Tom Quinn <trq AT astro.washington.edu>
  • To: charm AT cs.uiuc.edu
  • Subject: [charm] ckerr memory overflow
  • Date: Wed, 24 Mar 2010 14:19:09 -0700 (PDT)
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

"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




Archive powered by MHonArc 2.6.16.

Top of Page