Add default section to switch for error handling 64/100564/3 accepted/tizen/common/20161202.233134 accepted/tizen/ivi/20161204.235618 accepted/tizen/mobile/20161204.235525 accepted/tizen/tv/20161204.235543 accepted/tizen/unified/20170309.040721 accepted/tizen/wearable/20161204.235559 submit/tizen/20161202.021015 submit/tizen_unified/20170308.100417
authorKyungwook Tak <k.tak@samsung.com>
Mon, 28 Nov 2016 11:26:54 +0000 (20:26 +0900)
committerkyungwook tak <k.tak@samsung.com>
Tue, 29 Nov 2016 00:52:49 +0000 (16:52 -0800)
Related svace defect exist: null pointer dereferencing(xpathObj)

Change-Id: I9caa9c96466ea3e93e535d893cd4340a2e92021f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/xpath.c

index 2419f13..43cdf33 100644 (file)
@@ -279,6 +279,8 @@ xmlSecXPathDataExecute(xmlSecXPathDataPtr data, xmlDocPtr doc, xmlNodePtr hereNo
             return(NULL);
         }
         break;
+    default:
+        return(NULL);
     }
 
     /* sometime LibXML2 returns an empty nodeset or just NULL, we want