Hello.

Not sure if this list is the right address to send patches - sorry for 
inconvenience.

During the building process I have the problem listed below.
Patch to fix is in attach.

x86_64-alt-linux-gcc -I../../include/ -I/var/spool/maui/include      -D__LINUX  
 -D__MPBS       -pipe -Wall -O2 -D__M64  -c MSR.c                               
                                        
In file included from /usr/include/string.h:658,                                
                    
                 from ../../include/msched-common.h:122,                        
                    
                 from ../../include/msched.h:131,                               
                    
                 from ../../include/moab.h:663,                                 
                    
                 from MSR.c:111:                                                
                    
In function 'memset',                                                           
                    
    inlined from 'MSRProcessOConfig' at MSR.c:2819:                             
                    
/usr/include/bits/string3.h:86: error: call to __builtin___memset_chk will 
always overflow destination buffer 

-- 
wbr,d4s
diff --git a/maui/src/moab/MSR.c b/maui/src/moab/MSR.c
index d720bc2..2da03e0 100644
--- a/maui/src/moab/MSR.c
+++ b/maui/src/moab/MSR.c
@@ -2814,7 +2814,7 @@ int MSRProcessOConfig(
       char *TokPtr;
 
       int index;
-      int FMap[MAX_MATTR >> 5];
+      int FMap[(MAX_MATTR >> 5) + 1];
 
       MUBMClear(FMap,MAX_MATTR);
 
diff --git a/maui/src/server/UserI.c b/maui/src/server/UserI.c
index 62fbc05..3dc3ce3 100644
--- a/maui/src/server/UserI.c
+++ b/maui/src/server/UserI.c
@@ -5572,7 +5572,7 @@ int MUIJobSetAttr(
       {
       mqos_t *Q;
 
-      int QAL[MAX_MQOS >> 5];
+      int QAL[(MAX_MQOS >> 5) + 1];
 
       if (!(CFlags & ((1 << fAdmin1) | (1 << fAdmin2))) &&
          (JobOwner == FALSE))
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to