by sdrapkin · 11y ago · 0 comments
And in all likelihood it is thread-safe - but that's due to being lucky - not competent.
The larger issue is that we have a widely-used crypto software which is clearly (1) not designed well; (2) not implemented well.
How much trust one is willing to place into current and future versions by the same author(s) is up to you.
But "(2) the authors clearly intended this library to be thread-safe" means that piece of code is bad. So you have a point here.
But since it's a singleton, having a non-thread-safe initializer is cutting that distinction a little fine.
I'm sure the author would be very happy to see a sudden influx of contributions to the project, and we'd all have a better product in the end too.
Seems odd the spirit of open source in this respect tends to be more about pointing out the failures of the author than to collectively improve the actual product.