From 33af50a026eb8cbc189b73638343c18a5bc2fdfe Mon Sep 17 00:00:00 2001 From: ludamad Date: Mon, 19 Feb 2024 12:06:37 +0000 Subject: [PATCH] fix(MSAN): initialize element::infinity() Points at infinity are rare enough that we can initialize this to reduce MSAN noise. --- barretenberg/cpp/src/barretenberg/ecc/groups/element_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/cpp/src/barretenberg/ecc/groups/element_impl.hpp b/barretenberg/cpp/src/barretenberg/ecc/groups/element_impl.hpp index e71f76c9253..78e3b6cccc3 100644 --- a/barretenberg/cpp/src/barretenberg/ecc/groups/element_impl.hpp +++ b/barretenberg/cpp/src/barretenberg/ecc/groups/element_impl.hpp @@ -494,7 +494,7 @@ template constexpr element element element element::infinity() { - element e; + element e{}; e.self_set_infinity(); return e; }