GitHub user jbapple-cloudera opened a pull request: https://github.com/apache/thrift/pull/1232
THRIFT-4138: Remove undefined behavior imported from Boost Client: C++ There is undefined behavior in boost::lexical_cast that was fixed in https://github.com/boostorg/lexical_cast/issues/21, but that fix is only available in recent Boost releases. This patch removes all uses of lexical_cast instead. That removes the last undefined behavior, so this patch also makes ubsan.sh unconditionally fail on undefined behavior. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jbapple-cloudera/thrift boost-vptr Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/1232.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1232 ---- commit e8c76d1939ec0f338d4a520ec9e81cfefe6e33b1 Author: Jim Apple <jbapple-imp...@apache.org> Date: 2017-03-30T03:39:36Z THRIFT-4138: Remove undefined behavior imported from Boost Client: C++ There is undefined behavior in boost::lexical_cast that was fixed in https://github.com/boostorg/lexical_cast/issues/21, but that fix is only available in recent Boost releases. This patch removes all uses of lexical_cast instead. That removes the last undefined behavior, so this patch also makes ubsan.sh unconditionally fail on undefined behavior. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---