diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-08-19 11:55:54 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-08-19 12:08:53 +0300 |
commit | 65c167b829facbdd4907e177f3746831b7e2eb2c (patch) | |
tree | ac8f5abd649fae4ab3f5ae4387aaffd80350cd03 | |
parent | 60f93e64442a1e4b00e436f5a876b783f28b79e6 (diff) | |
download | ydb-65c167b829facbdd4907e177f3746831b7e2eb2c.tar.gz |
Update contrib/restricted/boost/system to 1.86.0
67a0a4a8ea3024e6edceb809719d7ce49372bd1a
-rw-r--r-- | contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp | 14 | ||||
-rw-r--r-- | contrib/restricted/boost/system/ya.make | 4 |
2 files changed, 15 insertions, 3 deletions
diff --git a/contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp b/contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp index ded2db6331..611ce378ea 100644 --- a/contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp +++ b/contrib/restricted/boost/system/include/boost/system/detail/generic_category_message.hpp @@ -39,7 +39,19 @@ inline char const * strerror_r_helper( int r, char const * buffer ) noexcept inline char const * generic_error_category_message( int ev, char * buffer, std::size_t len ) noexcept { - return strerror_r_helper( strerror_r( ev, buffer, len ), buffer ); + if( buffer != nullptr ) + { + return strerror_r_helper( strerror_r( ev, buffer, len ), buffer ); + } + else + { + // strerror_r requires non-null buffer pointer + + char tmp[ 1 ] = {}; + char const* r = strerror_r_helper( strerror_r( ev, tmp, 0 ), buffer ); + + return r == tmp? nullptr: r; + } } inline std::string generic_error_category_message( int ev ) diff --git a/contrib/restricted/boost/system/ya.make b/contrib/restricted/boost/system/ya.make index 9582ac8e7d..4739694167 100644 --- a/contrib/restricted/boost/system/ya.make +++ b/contrib/restricted/boost/system/ya.make @@ -6,9 +6,9 @@ LICENSE(BSL-1.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(1.85.0) +VERSION(1.86.0) -ORIGINAL_SOURCE(https://github.com/boostorg/system/archive/boost-1.85.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/system/archive/boost-1.86.0.tar.gz) PEERDIR( contrib/restricted/boost/assert |