From: Dave H. <hel...@us...> - 2014-03-25 23:38:28
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "sfcc- Small Footprint CIM Client". The branch, master has been updated via 45dc847702ba198b61f7fbcfadb5c137b58493e3 (commit) from 4d204e8c0576ade0973bd19dd57cce228b7085be (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 45dc847702ba198b61f7fbcfadb5c137b58493e3 Author: Dave Heller <hel...@us...> Date: Tue Mar 25 19:37:39 2014 -0400 [bugs:#2729] Improper type handling for EmbeddedObject in PARAMVALUE ----------------------------------------------------------------------- Summary of changes: backend/cimxml/cimXmlParser.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/backend/cimxml/cimXmlParser.c b/backend/cimxml/cimXmlParser.c index c3d7dc7..d1ab86e 100644 --- a/backend/cimxml/cimXmlParser.c +++ b/backend/cimxml/cimXmlParser.c @@ -605,6 +605,14 @@ static int procParamValue(parseUnion * lvalp, ParserControl * parm) if (attr[1].attr) { lvalp->xtokParamValue.type = xmlToCmpiType(attr[1].attr); } + if (attr[2].attr) { + if (strcasecmp(attr[2].attr, "instance") == 0 + || strcasecmp(attr[2].attr, "object") == 0) { + lvalp->xtokParamValue.type = CMPI_instance; + } else { + Throw(NULL, "Invalid value for attribute EmbeddedObject"); + } + } return XTOK_PARAMVALUE; } } hooks/post-receive -- sfcc- Small Footprint CIM Client |