forked from boostorg/beast
Sanitizer failures are errors
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 151:
|
||||||
|
|
||||||
|
* Sanitizer failures are errors
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 150:
|
Version 150:
|
||||||
|
|
||||||
* handler_ptr tests
|
* handler_ptr tests
|
||||||
|
@@ -150,8 +150,8 @@ elseif ("${VARIANT}" STREQUAL "ubasan")
|
|||||||
else()
|
else()
|
||||||
set (CMAKE_BUILD_TYPE RELWITHDEBINFO)
|
set (CMAKE_BUILD_TYPE RELWITHDEBINFO)
|
||||||
set (CMAKE_CXX_FLAGS
|
set (CMAKE_CXX_FLAGS
|
||||||
"${CMAKE_CXX_FLAGS} -DBOOST_BEAST_NO_SLOW_TESTS=1 -msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tools/blacklist.supp")
|
"${CMAKE_CXX_FLAGS} -DBOOST_BEAST_NO_SLOW_TESTS=1 -msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tools/blacklist.supp")
|
||||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address,undefined")
|
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address,undefined -fno-sanitize-recover=address,undefined")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
elseif ("${VARIANT}" STREQUAL "debug")
|
elseif ("${VARIANT}" STREQUAL "debug")
|
||||||
|
2
Jamfile
2
Jamfile
@@ -62,7 +62,7 @@ variant valgrind
|
|||||||
|
|
||||||
variant ubasan
|
variant ubasan
|
||||||
: release
|
: release
|
||||||
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
|
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
|
||||||
<linkflags>"-fsanitize=address,undefined"
|
<linkflags>"-fsanitize=address,undefined"
|
||||||
<define>BOOST_USE_ASAN=1
|
<define>BOOST_USE_ASAN=1
|
||||||
;
|
;
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
|
using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
|
||||||
namespace ssl = boost::asio::ssl; // from <boost/asio/ssl.hpp>
|
namespace ssl = boost::asio::ssl; // from <boost/asio/ssl.hpp>
|
||||||
namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>
|
namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>
|
||||||
|
|
||||||
// Sends a WebSocket message and prints the response
|
// Sends a WebSocket message and prints the response
|
||||||
|
Reference in New Issue
Block a user