Global error buffer race condition: SDL_GetError() thread-safety
SDL utilizes a global error-reporting mechanism where functions return a failure code, necessitating a call to SDL_GetError() to retrieve descriptive details. However, this global error buffer is not thread-safe. In applications where multiple threads interact with SDL subsystems, an error generated in one thread can overwrite the message from another thread