Closed gogoex closed 4 months ago
Upon calling mclBnG1_serialize, my program gets a segmentation fault in the constructor of FpT in include/fp.hpp line 256:
mclBnG1_serialize
FpT
include/fp.hpp
FpT() {} FpT(const FpT& x) { op_.fp_copy(v_, x.v_); }
In debugger, i see that fp_copy = 0x0,, and other functions of op_ are set to zero as well. It looks to me that op_ has not been initialized yet.
fp_copy = 0x0,
op_
Is there any way to ensure op_ to be initialized before the constructor is called?
Closing since the current master doesn't have this issue.
Upon calling
mclBnG1_serialize
, my program gets a segmentation fault in the constructor ofFpT
ininclude/fp.hpp
line 256:In debugger, i see that
fp_copy = 0x0,
, and other functions ofop_
are set to zero as well. It looks to me thatop_
has not been initialized yet.Is there any way to ensure
op_
to be initialized before the constructor is called?