On 06/05/10 08:17, Jeff Squyres wrote:

> hwloc 1.0rc5 is posted.

Only one unchecked malloc() left, the one at line 41 of
src/misc.c in hwloc_snprintf().  I believe the attached
patch should fix this.

cheers,
Chris
-- 
  Christopher Samuel - Senior Systems Administrator
  VLSCI - Victorian Life Sciences Computational Initiative
  Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
          http://www.vlsci.unimelb.edu.au/
--- ./src/misc.c.orig	2010-04-16 15:41:18.000000000 -0400
+++ ./src/misc.c	2010-05-06 11:08:39.608489221 -0400
@@ -39,6 +39,8 @@
   do {
     size *= 2;
     str = malloc(size);
+    if ( NULL == str )
+      return -1;
     va_start(ap, format);
     errno = 0;
     ret = vsnprintf(str, size, format, ap);

Reply via email to