ABY icon indicating copy to clipboard operation
ABY copied to clipboard

There exists memory leakages.

Open prncoprs opened this issue 3 years ago • 0 comments

  1. In the file ABY/src/examples/psi_scs/common/WaksmanPermutation.cpp, ~WaksmanPermutation() is not finished.
  2. In the file ABY/src/examples/psi_scs/common/WaksmanPermutation.h, line 93, wm = new WaksmanPermutation(size, this);, this object is not deleted in the destructor.
  3. In the file ABY/src/abycore/sharing/yaoserversharing.cpp, line 98, buf = (BYTE*) malloc(univ_size);, this buf is not deleted.
  4. In the file ABY/src/abycore/sharing/yaoserversharing.cpp, line 1025 & 1026, gate->gs.yinput.outKey = (BYTE*) malloc(sizeof(UGATE_T) * m_nSecParamIters * gate->nvals); gate->gs.yinput.pi = (BYTE*) malloc(sizeof(BYTE) * gate->nvals);, these two malloc do not free.
  5. In the file ABY/src/abycore/sharing/yaoclientsharing.cpp, line 88, buf = (BYTE*) malloc(univ_size);, it is the same issue with 3.

prncoprs avatar Jan 12 '22 08:01 prncoprs