summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.regex/re.regex.construct
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 03:45:31 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 03:45:31 +0000
commit9778a6d811c346eb9cdd8b6c6c28a915e58d1b67 (patch)
tree3e9731fc91c8e6ffd9c5c94a22723c68fe82bcda /libcxx/test/std/re/re.regex/re.regex.construct
parent10e3d1764a096ca802f65a5bbb9115a75f3d8a83 (diff)
downloadbcm5719-llvm-9778a6d811c346eb9cdd8b6c6c28a915e58d1b67.tar.gz
bcm5719-llvm-9778a6d811c346eb9cdd8b6c6c28a915e58d1b67.zip
Make system_error::message() thread safe. Fixes PR25598.
Summary: system_error::message() uses `strerror` for the generic and system categories. This function is not thread safe. The fix is to use `strerror_r`. It has been available since 2001 for GNU libc and since BSD 4.4 on FreeBSD/OS X. On platforms with GNU libc the extended version is used which always returns a valid string, even if an error occurs. In single-threaded builds `strerror` is still used. See https://llvm.org/bugs/show_bug.cgi?id=25598 Reviewers: majnemer, mclow.lists Subscribers: erik65536, cfe-commits, emaste Differential Revision: http://reviews.llvm.org/D20903 llvm-svn: 272633
Diffstat (limited to 'libcxx/test/std/re/re.regex/re.regex.construct')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud