#1636 formatString: not thread-safe (static char buffer[])
Metadata
Property | Value |
---|---|
Reported by | Ansgar Burchardt (burchardt@igpm.rwth-aachen.de) |
Reported at | May 6, 2015 13:45 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Ansgar Burchardt (burchardt@igpm.rwth-aachen.de) |
Last edited at | May 6, 2015 16:41 |
Closed by | Ansgar Burchardt (burchardt@igpm.rwth-aachen.de) |
Closed at | May 6, 2015 16:41 |
Closed in version | Unknown |
Resolution | Fixed |
Comment |
Description
The formatString() function uses static buffer which makes it not safe to use in multiple threads. The attached patch moves the buffer to the stack which is not shared between threads.
Ansgar