Automated rollback of commit 16880d4e3c.

PiperOrigin-RevId: 367459654
Change-Id: I93e13da18cb322c13f7c3e3a3ca4e301ccc49fdd
This commit is contained in:
Sandboxed API Team 2021-04-08 10:37:29 -07:00 committed by Copybara-Service
parent 16880d4e3c
commit 141fe911f5
4 changed files with 3 additions and 8 deletions

View File

@ -157,7 +157,6 @@ cc_library(
"//sandboxed_api/sandbox2:comms", "//sandboxed_api/sandbox2:comms",
"//sandboxed_api/util:status", "//sandboxed_api/util:status",
"@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/base:dynamic_annotations",
"@com_google_absl//absl/memory", "@com_google_absl//absl/memory",
"@com_google_absl//absl/status", "@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor", "@com_google_absl//absl/status:statusor",

View File

@ -150,7 +150,6 @@ add_library(sapi_vars ${SAPI_LIB_TYPE}
add_library(sapi::vars ALIAS sapi_vars) add_library(sapi::vars ALIAS sapi_vars)
target_link_libraries(sapi_vars target_link_libraries(sapi_vars
PRIVATE absl::core_headers PRIVATE absl::core_headers
absl::dynamic_annotations
absl::status absl::status
absl::statusor absl::statusor
absl::str_format absl::str_format

View File

@ -396,8 +396,6 @@ void ServeRequest(sandbox2::Comms* comms) {
} }
if (ret.ret_type == v::Type::kFloat) { if (ret.ret_type == v::Type::kFloat) {
// Make MSAN happy with long double.
ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(ret.float_val, sizeof(ret.float_val));
VLOG(1) << "Returned value: " << ret.float_val VLOG(1) << "Returned value: " << ret.float_val
<< ", Success: " << (ret.success ? "Yes" : "No"); << ", Success: " << (ret.success ? "Yes" : "No");
} else { } else {

View File

@ -19,7 +19,6 @@
#include <type_traits> #include <type_traits>
#include <glog/logging.h> #include <glog/logging.h>
#include "absl/base/dynamic_annotations.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h" #include "absl/strings/str_format.h"
#include "sandboxed_api/var_abstract.h" #include "sandboxed_api/var_abstract.h"
@ -58,10 +57,10 @@ class Reg : public Callable {
"Only register-sized types are allowed as template argument " "Only register-sized types are allowed as template argument "
"for class Reg."); "for class Reg.");
explicit Reg(const T val = {}) { Reg() : Reg(static_cast<T>(0)) {}
explicit Reg(const T val) {
val_ = val; val_ = val;
// Make MSAN happy with long double.
ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(val_, sizeof(val_));
SetLocal(&val_); SetLocal(&val_);
} }