martin-olivier / dylib

C++ cross-platform wrapper around dynamic loading of shared libraries (dll, so, dylib)
https://conan.io/center/recipes/dylib
MIT License
293 stars 44 forks source link

Can't use a static message buffer #38

Closed eyalroz closed 2 years ago

eyalroz commented 2 years ago

static char msg[buf_size];

This is a bug in multi-threaded code: Different threads will try to use the same buffer.

martin-olivier commented 2 years ago

I have fixed that in #39