---
src/amf/agent/amf_agent.cc | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/amf/agent/amf_agent.cc b/src/amf/agent/amf_agent.cc
index 20528e9..af4b30b 100644
--- a/src/amf/agent/amf_agent.cc
+++ b/src/amf/agent/amf_agent.cc
@@ -2686,6 +2686,13 @@ SaAisErrorT
AmfAgent::ComponentErrorReport_4(SaAmfHandleT hdl,
SaAisErrorT rc = SA_AIS_OK;
TRACE_ENTER2("SaAmfHandleT passed is %llx", hdl);
+ /* Verifying the input Handle & global handle */
+ if (!gl_ava_hdl || hdl > AVSV_UNS32_HDL_MAX) {
+ TRACE_2("Invalid SaAmfHandle passed by component: %llx", hdl);
+ rc = SA_AIS_ERR_BAD_HANDLE;
+ goto done;
+ }
+
/* Version is previously set in in initialize function */
if (!ava_B4_ver_used(0)) {
TRACE_2(
@@ -2779,6 +2786,14 @@ SaAisErrorT AmfAgent::ComponentErrorClear_4(SaAmfHandleT
hdl,
SaAisErrorT rc = SA_AIS_OK;
TRACE_ENTER2("SaAmfHandleT passed is %llx", hdl);
+ /* Verifying the input Handle & global handle */
+ if (!gl_ava_hdl || hdl > AVSV_UNS32_HDL_MAX) {
+ TRACE_2("Invalid SaAmfHandle passed by component: %llx", hdl);
+ rc = SA_AIS_ERR_BAD_HANDLE;
+ goto done;
+ }
+
+
/* Version is previously set in in initialize function */
if (!ava_B4_ver_used(0)) {
TRACE_2(
--
1.9.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel