[Mauiusers] Bug found in maui

Åke Sandgren ake.sandgren at hpc2n.umu.se
Wed Nov 29 02:23:11 MST 2006


Deref of NULL pointer.

--- /home/peterg/software/tmp/maui-3.2.6p18/src/moab/MPriority.c
2006-11-21 15:51:13.000000000 +0100
+++ etc/maui-integration/src/moab/MPriority.c   2006-11-29
08:09:17.000000000 +0100
@@ -224,7 +224,12 @@

   if (X.XJobGetStartPriority != (int (*)())0)
     {
-    return((*X.XJobGetStartPriority)(X.xd,J,Priority,*BPtr));
+        return (*X.XJobGetStartPriority)(
+            X.xd,
+            J,
+            Priority,
+            (BPtr != NULL) ? *BPtr : NULL
+        );
     }

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake at hpc2n.umu.se   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se



More information about the mauiusers mailing list