Opened 10 years ago
#8244 new Bugs
strerror is not thread-safe on all platforms
Reported by: | Andrey Semashev | Owned by: | Jonathan Turkanis |
---|---|---|---|
Milestone: | To Be Determined | Component: | iostreams |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
boost/iostreams/detail/system_failure.hpp uses strerror function which is not thread-safe on many platforms (e.g. Linux). Its use should be replaced with strerror_r, when possible.
As a hint for implementation see libs/system/src/error_code.cpp.
Note:
See TracTickets
for help on using tickets.