mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Automated rollback of commit 16880d4e3c
.
PiperOrigin-RevId: 367459654 Change-Id: I93e13da18cb322c13f7c3e3a3ca4e301ccc49fdd
This commit is contained in:
parent
16880d4e3c
commit
141fe911f5
|
@ -157,7 +157,6 @@ cc_library(
|
|||
"//sandboxed_api/sandbox2:comms",
|
||||
"//sandboxed_api/util:status",
|
||||
"@com_google_absl//absl/base:core_headers",
|
||||
"@com_google_absl//absl/base:dynamic_annotations",
|
||||
"@com_google_absl//absl/memory",
|
||||
"@com_google_absl//absl/status",
|
||||
"@com_google_absl//absl/status:statusor",
|
||||
|
|
|
@ -150,7 +150,6 @@ add_library(sapi_vars ${SAPI_LIB_TYPE}
|
|||
add_library(sapi::vars ALIAS sapi_vars)
|
||||
target_link_libraries(sapi_vars
|
||||
PRIVATE absl::core_headers
|
||||
absl::dynamic_annotations
|
||||
absl::status
|
||||
absl::statusor
|
||||
absl::str_format
|
||||
|
|
|
@ -396,8 +396,6 @@ void ServeRequest(sandbox2::Comms* comms) {
|
|||
}
|
||||
|
||||
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
|
||||
<< ", Success: " << (ret.success ? "Yes" : "No");
|
||||
} else {
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <type_traits>
|
||||
|
||||
#include <glog/logging.h>
|
||||
#include "absl/base/dynamic_annotations.h"
|
||||
#include "absl/strings/str_cat.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "sandboxed_api/var_abstract.h"
|
||||
|
@ -58,10 +57,10 @@ class Reg : public Callable {
|
|||
"Only register-sized types are allowed as template argument "
|
||||
"for class Reg.");
|
||||
|
||||
explicit Reg(const T val = {}) {
|
||||
Reg() : Reg(static_cast<T>(0)) {}
|
||||
|
||||
explicit Reg(const T val) {
|
||||
val_ = val;
|
||||
// Make MSAN happy with long double.
|
||||
ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(val_, sizeof(val_));
|
||||
SetLocal(&val_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user