This is an automated email from the ASF dual-hosted git repository.

asekretenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new add9f1d  Fixed read of uninitialized variables detected with UBSAN.
add9f1d is described below

commit add9f1de771693884548095703ed2bd4bc6cfc16
Author: Charles-Francois Natali <[email protected]>
AuthorDate: Sat May 15 12:39:18 2021 +0100

    Fixed read of uninitialized variables detected with UBSAN.
---
 src/tests/cluster.hpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/tests/cluster.hpp b/src/tests/cluster.hpp
index b36b94f..eae6bcf 100644
--- a/src/tests/cluster.hpp
+++ b/src/tests/cluster.hpp
@@ -106,7 +106,8 @@ public:
   void setAuthorizationCallbacks(Authorizer* authorizer);
 
 private:
-  Master() : files(master::READONLY_HTTP_AUTHENTICATION_REALM) {};
+  Master() : files(master::READONLY_HTTP_AUTHENTICATION_REALM),
+             authorizationCallbacksSet(false) {}
 
   // Not copyable, not assignable.
   Master(const Master&) = delete;
@@ -203,7 +204,8 @@ public:
   void setAuthorizationCallbacks(Authorizer* authorizer);
 
 private:
-  Slave() : files(slave::READONLY_HTTP_AUTHENTICATION_REALM) {};
+  Slave() : files(slave::READONLY_HTTP_AUTHENTICATION_REALM),
+            authorizationCallbacksSet(false) {}
 
   // Not copyable, not assignable.
   Slave(const Slave&) = delete;

Reply via email to