Skip to content

Commit 65c167b

Browse files
committed
Update contrib/restricted/boost/system to 1.86.0
67a0a4a8ea3024e6edceb809719d7ce49372bd1a
1 parent 60f93e6 commit 65c167b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@ inline char const * strerror_r_helper( int r, char const * buffer ) noexcept
3939

4040
inline char const * generic_error_category_message( int ev, char * buffer, std::size_t len ) noexcept
4141
{
42-
return strerror_r_helper( strerror_r( ev, buffer, len ), buffer );
42+
if( buffer != nullptr )
43+
{
44+
return strerror_r_helper( strerror_r( ev, buffer, len ), buffer );
45+
}
46+
else
47+
{
48+
// strerror_r requires non-null buffer pointer
49+
50+
char tmp[ 1 ] = {};
51+
char const* r = strerror_r_helper( strerror_r( ev, tmp, 0 ), buffer );
52+
53+
return r == tmp? nullptr: r;
54+
}
4355
}
4456

4557
inline std::string generic_error_category_message( int ev )

contrib/restricted/boost/system/ya.make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ LICENSE(BSL-1.0)
66

77
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
88

9-
VERSION(1.85.0)
9+
VERSION(1.86.0)
1010

11-
ORIGINAL_SOURCE(https://github.com/boostorg/system/archive/boost-1.85.0.tar.gz)
11+
ORIGINAL_SOURCE(https://github.com/boostorg/system/archive/boost-1.86.0.tar.gz)
1212

1313
PEERDIR(
1414
contrib/restricted/boost/assert

0 commit comments

Comments
 (0)