diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-08-01 17:17:54 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-08-01 18:23:07 +0900 |
commit | 36eb4021277e375bdb179970bac24553cfc0cde9 (patch) | |
tree | c688fe61c115d3e6b82aabbcfbdddd35f32e103b /src/xmldsig.c | |
parent | f732baaeb6fc2e9872696cb381b90b8c523d0c53 (diff) | |
download | xmlsec1-36eb4021277e375bdb179970bac24553cfc0cde9.tar.gz xmlsec1-36eb4021277e375bdb179970bac24553cfc0cde9.tar.bz2 xmlsec1-36eb4021277e375bdb179970bac24553cfc0cde9.zip |
Fix svace defects
* null check to return value
* overflow check on array
* fix dead code (it seem to typo, (++ptr))
Change-Id: I184b29a184812c745a8ee192632ea101e349b10d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Diffstat (limited to 'src/xmldsig.c')
-rw-r--r-- | src/xmldsig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmldsig.c b/src/xmldsig.c index 7d8760b7..61e35074 100644 --- a/src/xmldsig.c +++ b/src/xmldsig.c @@ -2333,6 +2333,7 @@ xmlSecDSigReferenceCtxProcessNodeEx(xmlSecDSigReferenceCtxPtr dsigRefCtx, xmlNod /* read attributes first */ dsigRefCtx->uri = xmlGetProp(node, xmlSecAttrURI); + xmlSecAssert2(dsigRefCtx->uri != NULL, -1); while(pNextTmp[i] != NULL) { len = strlen(pNextTmp[i]); |