fix Dereferencing null pointer 81/179281/1 accepted/tizen/unified/20180517.062413 submit/tizen/20180517.042340
authorYoungjae Shin <yj99.shin@samsung.com>
Thu, 17 May 2018 02:43:22 +0000 (11:43 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 17 May 2018 02:43:22 +0000 (11:43 +0900)
Change-Id: I7975c1456b4edc99c0fce5caf1c22d277b7a348e

vobject-engine/VMessage.c

index 039a720..40235d5 100755 (executable)
@@ -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);