herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 152 forks source link

initPairing is not thread-safe #75

Closed llxxee closed 4 years ago

llxxee commented 4 years ago

invTbl.clear(); in op.hpp is not thread-safe. It can cause segfault when initPairing() is called in multiple threads.

herumi commented 4 years ago

It is a specification of this library. https://github.com/herumi/mcl/blob/master/api.md#thread-safety

llxxee commented 4 years ago

@herumi thanks!