Exploit databaseDownload repository ZIP
GH-839c07bcf7b2d736ed82c382de889ad5
valencenavy/isolatedanarchy-public
Sources for CVE-2026-87492
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files1,003
valencenavy/isolatedanarchy-publicRevision 826a1554d9bc
- ↑..Parent directory
- absl_status.mojom-blink-forward.h
- absl_status.mojom-blink-import-headers.h
- absl_status.mojom-blink-test-utils.h
- absl_status.mojom-blink.cc
- absl_status.mojom-blink.h
- absl_status.mojom-converters.ts
- absl_status.mojom-data-view.h
- absl_status.mojom-features.h
- absl_status.mojom-forward.h
- absl_status.mojom-import-headers.h
- absl_status.mojom-lite-for-compile.js
- absl_status.mojom-lite.js
- absl_status.mojom-module
- absl_status.mojom-params-data.h
- absl_status.mojom-send-validation.h
- absl_status.mojom-shared-internal.h
- absl_status.mojom-shared-message-ids.h
- absl_status.mojom-shared.cc
- absl_status.mojom-shared.h
- absl_status.mojom-test-utils.h
- absl_status.mojom-webui.ts
- absl_status.mojom.cc
- absl_status.mojom.h
- absl_status.mojom.js
- absl_status.mojom.m.js
- application_state.mojom-blink-forward.h
- application_state.mojom-blink-import-headers.h
- application_state.mojom-blink-test-utils.h
- application_state.mojom-blink.cc
- application_state.mojom-blink.h
- application_state.mojom-converters.ts
- application_state.mojom-data-view.h
- application_state.mojom-features.h
- application_state.mojom-forward.h
- application_state.mojom-import-headers.h
- application_state.mojom-lite-for-compile.js
- application_state.mojom-lite.js
- application_state.mojom-module
- application_state.mojom-params-data.h
- application_state.mojom-send-validation.h
- application_state.mojom-shared-internal.h
- application_state.mojom-shared-message-ids.h
- application_state.mojom-shared.cc
- application_state.mojom-shared.h
- application_state.mojom-test-utils.h
- application_state.mojom-webui.ts
- application_state.mojom.cc
- application_state.mojom.h
- application_state.mojom.js
- application_state.mojom.m.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gen/mojo/public/mojom/base/values.mojom.cc
Text · 13,362 bytes// mojo/public/mojom/base/values.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "mojo/public/mojom/base/values.mojom.h"
#include <stdint.h>
#include <utility>
#include "base/notreached.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "mojo/public/mojom/base/values.mojom-params-data.h"
#include "mojo/public/mojom/base/values.mojom-shared-message-ids.h"
#include "mojo/public/mojom/base/values.mojom-import-headers.h"
#include "mojo/public/mojom/base/values.mojom-test-utils.h"
namespace mojo_base::mojom {
DictionaryValue::DictionaryValue()
: storage() {}
DictionaryValue::DictionaryValue(
base::flat_map<std::string, ::base::Value> storage_in)
: storage(std::move(storage_in)) {}
DictionaryValue::~DictionaryValue() = default;
void DictionaryValue::WriteIntoTrace(
perfetto::TracedValue traced_context) const {
[[maybe_unused]] auto dict = std::move(traced_context).WriteDictionary();
perfetto::WriteIntoTracedValueWithFallback(
dict.AddItem(
"storage"), this->storage,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
"<value of type base::flat_map<std::string, ::base::Value>>"
#else
"<value>"
#endif // BUILDFLAG(MOJO_TRACE_ENABLED)
);
}
bool DictionaryValue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) {
return Data_::Validate(data, validation_context);
}
ListValue::ListValue()
: storage() {}
ListValue::ListValue(
std::vector<::base::Value> storage_in)
: storage(std::move(storage_in)) {}
ListValue::~ListValue() = default;
void ListValue::WriteIntoTrace(
perfetto::TracedValue traced_context) const {
[[maybe_unused]] auto dict = std::move(traced_context).WriteDictionary();
perfetto::WriteIntoTracedValueWithFallback(
dict.AddItem(
"storage"), this->storage,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
"<value of type std::vector<::base::Value>>"
#else
"<value>"
#endif // BUILDFLAG(MOJO_TRACE_ENABLED)
);
}
bool ListValue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) {
return Data_::Validate(data, validation_context);
}
ValuePtr
Value::NewNullValue(
uint8_t value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kNullValue)>,
std::move(value));
}
ValuePtr
Value::NewBoolValue(
bool value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kBoolValue)>,
std::move(value));
}
ValuePtr
Value::NewIntValue(
int32_t value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kIntValue)>,
std::move(value));
}
ValuePtr
Value::NewDoubleValue(
double value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kDoubleValue)>,
std::move(value));
}
ValuePtr
Value::NewStringValue(
const std::string& value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kStringValue)>,
std::move(value));
}
ValuePtr
Value::NewBinaryValue(
std::vector<uint8_t> value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kBinaryValue)>,
std::move(value));
}
ValuePtr
Value::NewDictionaryValue(
::base::DictValue value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kDictionaryValue)>,
std::move(value));
}
ValuePtr
Value::NewListValue(
::base::ListValue value) {
return ValuePtr(
std::in_place,
std::in_place_index<static_cast<size_t>(Tag::kListValue)>,
std::move(value));
}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kNullValue)>,
uint8_t value)
: tag_(Tag::kNullValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kNullValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kBoolValue)>,
bool value)
: tag_(Tag::kBoolValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kBoolValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kIntValue)>,
int32_t value)
: tag_(Tag::kIntValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kIntValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kDoubleValue)>,
double value)
: tag_(Tag::kDoubleValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kDoubleValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kStringValue)>,
const std::string& value)
: tag_(Tag::kStringValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kStringValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kBinaryValue)>,
std::vector<uint8_t> value)
: tag_(Tag::kBinaryValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kBinaryValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kDictionaryValue)>,
::base::DictValue value)
: tag_(Tag::kDictionaryValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kDictionaryValue)>,
std::move(value)) {}
Value::Value(
std::in_place_index_t<static_cast<size_t>(Tag::kListValue)>,
::base::ListValue value)
: tag_(Tag::kListValue),
data_(std::in_place_index<static_cast<size_t>(Tag::kListValue)>,
std::move(value)) {}
Value::~Value() {
DestroyActive();
}
void Value::set_null_value(uint8_t null_value) {
if (tag_ != Tag::kNullValue) {
DestroyActive();
tag_ = Tag::kNullValue;
}
data_.null_value = null_value;
}
void Value::set_bool_value(bool bool_value) {
if (tag_ != Tag::kBoolValue) {
DestroyActive();
tag_ = Tag::kBoolValue;
}
data_.bool_value = bool_value;
}
void Value::set_int_value(int32_t int_value) {
if (tag_ != Tag::kIntValue) {
DestroyActive();
tag_ = Tag::kIntValue;
}
data_.int_value = int_value;
}
void Value::set_double_value(double double_value) {
if (tag_ != Tag::kDoubleValue) {
DestroyActive();
tag_ = Tag::kDoubleValue;
}
data_.double_value = double_value;
}
void Value::set_string_value(const std::string& string_value) {
if (tag_ == Tag::kStringValue) {
data_.string_value = std::move(string_value);
} else {
DestroyActive();
tag_ = Tag::kStringValue;
new (&data_.string_value) std::string(
std::move(string_value));
}
}
void Value::set_binary_value(std::vector<uint8_t> binary_value) {
if (tag_ == Tag::kBinaryValue) {
data_.binary_value = std::move(binary_value);
} else {
DestroyActive();
tag_ = Tag::kBinaryValue;
new (&data_.binary_value) std::vector<uint8_t>(
std::move(binary_value));
}
}
void Value::set_dictionary_value(::base::DictValue dictionary_value) {
if (tag_ == Tag::kDictionaryValue) {
data_.dictionary_value = std::move(dictionary_value);
} else {
DestroyActive();
tag_ = Tag::kDictionaryValue;
new (&data_.dictionary_value) ::base::DictValue(
std::move(dictionary_value));
}
}
void Value::set_list_value(::base::ListValue list_value) {
if (tag_ == Tag::kListValue) {
data_.list_value = std::move(list_value);
} else {
DestroyActive();
tag_ = Tag::kListValue;
new (&data_.list_value) ::base::ListValue(
std::move(list_value));
}
}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kNullValue)>,
uint8_t value)
: null_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kBoolValue)>,
bool value)
: bool_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kIntValue)>,
int32_t value)
: int_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kDoubleValue)>,
double value)
: double_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kStringValue)>,
const std::string& value)
: string_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kBinaryValue)>,
std::vector<uint8_t> value)
: binary_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kDictionaryValue)>,
::base::DictValue value)
: dictionary_value(std::move(value)) {}
Value::Union_::Union_(
std::in_place_index_t<static_cast<size_t>(Tag::kListValue)>,
::base::ListValue value)
: list_value(std::move(value)) {}
void Value::DestroyActive() {
switch (tag_) {
case Tag::kNullValue:
std::destroy_at(&data_.null_value);
break;
case Tag::kBoolValue:
std::destroy_at(&data_.bool_value);
break;
case Tag::kIntValue:
std::destroy_at(&data_.int_value);
break;
case Tag::kDoubleValue:
std::destroy_at(&data_.double_value);
break;
case Tag::kStringValue:
std::destroy_at(&data_.string_value);
break;
case Tag::kBinaryValue:
std::destroy_at(&data_.binary_value);
break;
case Tag::kDictionaryValue:
std::destroy_at(&data_.dictionary_value);
break;
case Tag::kListValue:
std::destroy_at(&data_.list_value);
break;
}
}
bool Value::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) {
return Data_::Validate(data, validation_context, false);
}
} // mojo_base::mojom
namespace mojo {
// static
bool StructTraits<::mojo_base::mojom::DictionaryValue::DataView, ::mojo_base::mojom::DictionaryValuePtr>::Read(
::mojo_base::mojom::DictionaryValue::DataView input,
::mojo_base::mojom::DictionaryValuePtr* output) {
bool success = true;
::mojo_base::mojom::DictionaryValuePtr result(::mojo_base::mojom::DictionaryValue::New());
if (success && !input.ReadStorage(&result->storage))
success = false;
*output = std::move(result);
return success;
}
// static
bool StructTraits<::mojo_base::mojom::ListValue::DataView, ::mojo_base::mojom::ListValuePtr>::Read(
::mojo_base::mojom::ListValue::DataView input,
::mojo_base::mojom::ListValuePtr* output) {
bool success = true;
::mojo_base::mojom::ListValuePtr result(::mojo_base::mojom::ListValue::New());
if (success && !input.ReadStorage(&result->storage))
success = false;
*output = std::move(result);
return success;
}
// static
bool UnionTraits<::mojo_base::mojom::Value::DataView, ::mojo_base::mojom::ValuePtr>::Read(
::mojo_base::mojom::Value::DataView input,
::mojo_base::mojom::ValuePtr* output) {
using UnionType = ::mojo_base::mojom::Value;
using Tag = UnionType::Tag;
switch (input.tag()) {
case Tag::kNullValue: {
*output = UnionType::NewNullValue(input.null_value());
break;
}
case Tag::kBoolValue: {
*output = UnionType::NewBoolValue(input.bool_value());
break;
}
case Tag::kIntValue: {
*output = UnionType::NewIntValue(input.int_value());
break;
}
case Tag::kDoubleValue: {
*output = UnionType::NewDoubleValue(input.double_value());
break;
}
case Tag::kStringValue: {
std::string result_string_value{};
if (!input.ReadStringValue(&result_string_value))
return false;
*output = UnionType::NewStringValue(
std::move(result_string_value));
break;
}
case Tag::kBinaryValue: {
std::vector<uint8_t> result_binary_value{};
if (!input.ReadBinaryValue(&result_binary_value))
return false;
*output = UnionType::NewBinaryValue(
std::move(result_binary_value));
break;
}
case Tag::kDictionaryValue: {
::base::DictValue result_dictionary_value{};
if (!input.ReadDictionaryValue(&result_dictionary_value))
return false;
*output = UnionType::NewDictionaryValue(
std::move(result_dictionary_value));
break;
}
case Tag::kListValue: {
::base::ListValue result_list_value{};
if (!input.ReadListValue(&result_list_value))
return false;
*output = UnionType::NewListValue(
std::move(result_list_value));
break;
}
default:
return false;
}
return true;
}
} // namespace mojo
// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.
namespace mojo_base::mojom {
} // mojo_base::mojom
#if defined(__clang__)
#pragma clang diagnostic pop
#endif