I’m using VMProtect 3.9.4, build 2345, with MSVC C++. I have a question about the thread safety of VMProtectDecryptStringA/W, and VMProtectFreeString.
I always use VMProtectDecryptStringA/W with VMProtectFreeString to prevent runtime memory searching.
The documentation states: " If VMProtectDecryptStringA / VMProtectDecryptStringW are used with the same parameters for the second time without destroying previously decrypted string, additional memory is not allocated. "
So, I wonder if these functions are thread-safe?
For example:
Code: Select all
void func(){
const char* a = VMProtectDecryptStringA("testA");
// do something << my code block is thread-safe
VMProtectFreeString(a);
}
Thank you!