[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 106/171: -fixes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 106/171: -fixes |
Date: |
Thu, 04 Jan 2018 16:10:14 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 811155110e1d22345f13ac6c7c85ebba92226132
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sun Jul 9 20:14:16 2017 +0200
-fixes
---
src/identity-provider/test_idp.sh | 18 ++++--------------
src/util/crypto_abe.c | 7 +++++--
2 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/src/identity-provider/test_idp.sh
b/src/identity-provider/test_idp.sh
index 9947dfe30..2eeb27ce9 100755
--- a/src/identity-provider/test_idp.sh
+++ b/src/identity-provider/test_idp.sh
@@ -25,17 +25,7 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
TEST_ATTR="test"
gnunet-arm -s -c test_idp.conf
gnunet-identity -C testego -c test_idp.conf
-$DO_TIMEOUT valgrind gnunet-idp -e testego --init -c test_idp.conf
-$DO_TIMEOUT valgrind gnunet-idp -e testego -a email -V address@hidden -c
test_idp.conf
-STATUS=$?
-gnunet-namestore -z testego -D -c test_idp.conf
-$DO_TIMEOUT valgrind --leak-check=full gnunet-idp -e testego -D -c
test_idp.conf
-
-if test $? != 0
-then
- echo "Error issuing..."
- exit 1
-fi
-#Try import
-gnunet-arm -e -c test_idp_lookup.conf
-exit $RES
+gnunet-idp -e testego --init -c test_idp.conf
+gnunet-idp -e testego -a email -V address@hidden -c test_idp.conf
+gnunet-idp -e testego -D -c test_idp.conf
+gnunet-arm -e -c test_idp.conf
diff --git a/src/util/crypto_abe.c b/src/util/crypto_abe.c
index 798a74f87..f84aaf9f9 100644
--- a/src/util/crypto_abe.c
+++ b/src/util/crypto_abe.c
@@ -145,7 +145,6 @@ GNUNET_CRYPTO_cpabe_create_master_key (void)
key->msk = bswabe_msk_serialize(msk);
GNUNET_assert (NULL != key->pub);
GNUNET_assert (NULL != key->msk);
- bswabe_pub_free (pub);
bswabe_msk_free (msk);
return key;
}
@@ -174,6 +173,8 @@ GNUNET_CRYPTO_cpabe_create_key (struct
GNUNET_CRYPTO_AbeMasterKey *key,
prv_key->prv = bswabe_prv_serialize(prv);
prv_key->pub = bswabe_pub_serialize (pub);
GNUNET_assert (NULL != prv_key->prv);
+ //Memory management in bswabe is buggy
+ //bswabe_prv_free (prv);
bswabe_msk_free (msk);
return prv_key;
}
@@ -296,6 +297,7 @@ GNUNET_CRYPTO_cpabe_decrypt (const void *block,
if( !bswabe_dec(pub, prv, cph, m) ) {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"%s\n", bswabe_error());
+ bswabe_cph_free(cph);
return GNUNET_SYSERR;
}
bswabe_cph_free(cph);
@@ -304,7 +306,8 @@ GNUNET_CRYPTO_cpabe_decrypt (const void *block,
g_byte_array_free(aes_buf, 1);
*result = GNUNET_malloc (plt->len);
GNUNET_memcpy (*result, plt->data, plt->len);
- bswabe_prv_free (prv);
+ //freeing is buggy in bswabe
+ //bswabe_prv_free (prv);
bswabe_pub_free (pub);
return pt_size;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 70/171: - merge with master, (continued)
- [GNUnet-SVN] [gnunet] 70/171: - merge with master, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 101/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 107/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 100/171: -merge, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 103/171: Merge branch 'abe' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 112/171: Merge remote-tracking branch 'origin/master' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 99/171: -add free ABE functions, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 90/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 125/171: -do not persist sensitive data, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 95/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 106/171: -fixes,
gnunet <=
- [GNUnet-SVN] [gnunet] 114/171: -move idp gns record handling to identity-provider, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 75/171: -add policy record type, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 102/171: -fix leaks, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 108/171: -fixes, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 111/171: Merge remote-tracking branch 'origin/master' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 97/171: -add attr list, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 85/171: -add ABE crypto module, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 123/171: -fix bugs, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 138/171: -add new jwt handling, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 88/171: -add serialization, gnunet, 2018/01/04