projects
/
platform
/
core
/
security
/
tef-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SVACE: HEAP_LEAK, correct size in strncpy
[platform/core/security/tef-simulator.git]
/
ssflib
/
dep
/
cryptocore
/
source
/
base
/
cc_bignum.c
diff --git
a/ssflib/dep/cryptocore/source/base/cc_bignum.c
b/ssflib/dep/cryptocore/source/base/cc_bignum.c
index
b1561ab
..
5dc6043
100644
(file)
--- a/
ssflib/dep/cryptocore/source/base/cc_bignum.c
+++ b/
ssflib/dep/cryptocore/source/base/cc_bignum.c
@@
-3107,6
+3107,7
@@
cc_u8 * SDRM_BN2STRFOUR(cc_u32 *numberBits, SDRM_BIG_NUM *BN_Src)
num = SDRM_BN_Init(BN_Src->Size);
if( num == NULL)//fix prevent cid = 89093 by guoxing.xu
{
+ free(num);
free(strDestTemp);
SDRM_BN_FREE(d);
return NULL;