osaf/services/saf/avsv/avd/avd_nodegroup.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


don't read beyond the end of saAmfNGNodeList, if the node to be removed from 
node group
is at the end of the array.

diff --git a/osaf/services/saf/avsv/avd/avd_nodegroup.c 
b/osaf/services/saf/avsv/avd/avd_nodegroup.c
--- a/osaf/services/saf/avsv/avd/avd_nodegroup.c
+++ b/osaf/services/saf/avsv/avd/avd_nodegroup.c
@@ -505,7 +505,7 @@
 
                        TRACE("found node %s", ng->saAmfNGNodeList[j].value);
 
-                       for (; j < ng->number_nodes; j++)
+                       for (; j < (ng->number_nodes - 1); j++)
                                ng->saAmfNGNodeList[j] = ng->saAmfNGNodeList[j 
+ 1];
 
                        ng->number_nodes -= mod->modAttr.attrValuesNumber;

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to