From 1a4846dedc7ec7869d9af09c94f17be8770f6eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 1 Jul 2020 16:11:58 +0300 Subject: [PATCH] MDEV-22690 MSAN use-of-uninitialized-value in optimizer_trace This was actually fixed in commit e843033d0233927b8f51d7dbe21993bdfb01ecdf and all that we need to do is to remove an unnecessary work-around. --- sql/my_json_writer.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc index ca519981b27..3234b8f9995 100644 --- a/sql/my_json_writer.cc +++ b/sql/my_json_writer.cc @@ -180,9 +180,6 @@ void Json_writer::add_size(longlong val) void Json_writer::add_double(double val) { char buf[64]; -#if __has_feature(memory_sanitizer) // FIXME: remove this workaround for - __msan_unpoison(&val, sizeof val); // main.range_mrr_icp & many other tests -#endif size_t len= my_snprintf(buf, sizeof(buf), "%-.11lg", val); add_unquoted_str(buf, len); }