You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug that causes a memory leak in BGV mode. The MWE is as follows:
#include<iostream>
#include<helib/helib.h>
#include<helib/binaryArith.h>
#include<helib/intraSlot.h>intmain(int argc, char* argv[])
{
long p = 2;
long m = 4095;
long r = 1;
long bits = 500;
long c = 2;
std::vector<long> mvec = {7, 5, 9, 13};
std::vector<long> gens = {2341, 3277, 911};
std::vector<long> ords = {6, 4, 6};
helib::Context context = helib::ContextBuilder<helib::BGV>()
.m(m)
.p(p)
.r(r)
.gens(gens)
.ords(ords)
.bits(bits)
.c(c)
.bootstrappable(true)
.mvec(mvec)
.build();
context.printout();
std::cout << std::endl;
std::cout << "Security: " << context.securityLevel() << std::endl;
helib::SecKey secret_key(context);
secret_key.GenSecKey();
return0;
}
Thank you for taking the time to look into this issue. Please let us know if any further details or clarification would be helpful!
Best regards,
wowblk
The text was updated successfully, but these errors were encountered:
I found a bug that causes a memory leak in BGV mode. The MWE is as follows:
Thank you for taking the time to look into this issue. Please let us know if any further details or clarification would be helpful!
Best regards,
wowblk
The text was updated successfully, but these errors were encountered: