Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: crm by andrew from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Sat,  6 May 2006 01:56:32 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: crm by andrew from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : andrew
Host    : 
Project : linux-ha
Module  : crm

Dir     : linux-ha/crm/pengine


Modified Files:
        master.c 


Log Message:
Fix for buffer overrun

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/crm/pengine/master.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- master.c    5 May 2006 13:08:49 -0000       1.16
+++ master.c    6 May 2006 07:56:31 -0000       1.17
@@ -1,4 +1,4 @@
-/* $Id: master.c,v 1.16 2006/05/05 13:08:49 andrew Exp $ */
+/* $Id: master.c,v 1.17 2006/05/06 07:56:31 andrew Exp $ */
 /* 
  * Copyright (C) 2004 Andrew Beekhof <[EMAIL PROTECTED]>
  * 
@@ -295,6 +295,9 @@
                                        chosen->details->attrs, attr_name);
 
                                if(attr_value == NULL) {
+                                       crm_free(attr_name);
+                                       len = 8 + strlen(child_rsc->long_name);
+                                       crm_malloc0(attr_name, len);
                                        sprintf(attr_name, "master-%s", 
child_rsc->long_name);
                                        crm_debug_2("looking for %s on %s", 
attr_name,
                                                    chosen->details->uname);




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 30, Issue 12
********************************************

Reply via email to