From f32a8e2c995e106a707bae93cd799fbeff973558 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 2 Aug 2018 07:20:12 -0700 Subject: [PATCH] Silence ubsan false positive fix #1214 --- CHANGELOG.md | 6 ++++++ doc/qbk/09_releases.qbk | 2 ++ include/boost/beast/websocket/impl/write.ipp | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14aefd52..20d84a78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 182: + +* Silence ubsan false positive + +-------------------------------------------------------------------------------- + Version 181: * Fix parse_dec algorithm diff --git a/doc/qbk/09_releases.qbk b/doc/qbk/09_releases.qbk index 53b7fe22..3d392b00 100644 --- a/doc/qbk/09_releases.qbk +++ b/doc/qbk/09_releases.qbk @@ -76,6 +76,8 @@ in future versions. * ([issue 1211]) Fix parse_dec algorithm +* ([issue 1214]) Silence ubsan false positive + * Tidy up websocket stream javadocs * Fix move-only arguments in [link beast.ref.boost__beast__bind_handler `bind_handler`] diff --git a/include/boost/beast/websocket/impl/write.ipp b/include/boost/beast/websocket/impl/write.ipp index edaca798..08b9943d 100644 --- a/include/boost/beast/websocket/impl/write.ipp +++ b/include/boost/beast/websocket/impl/write.ipp @@ -152,7 +152,7 @@ class stream::write_some_op std::size_t in_; int how_; bool fin_; - bool more_; + bool more_ = false; // for ubsan bool cont_ = false; public: