From 64abcc1cf9953cb53ff1fa85a7ec0c0e7ea5ba97 Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Thu, 17 May 2018 11:43:22 +0900 Subject: [PATCH] fix Dereferencing null pointer Change-Id: I7975c1456b4edc99c0fce5caf1c22d277b7a348e --- vobject-engine/VMessage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vobject-engine/VMessage.c b/vobject-engine/VMessage.c index 039a720..40235d5 100755 --- a/vobject-engine/VMessage.c +++ b/vobject-engine/VMessage.c @@ -957,6 +957,11 @@ VTree* vmsg_decode(char *pMsgRaw) case VMSG_PARAM_VALUE_STATUS: dLen = 0; numberedParam = 0; + if (param_status != true) { + VDATA_TRACE("Inavalid status(param)"); + goto CATCH; + } + switch (pTmpParam->parameter) { case VMSG_PARAM_TYPE: szValue = __VMsgGetParamVal(pMsgRaw, &status, &dLen); -- 2.34.1