chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
@@ -0,0 +1,37 @@
licenses(["notice"]) # Apache
exports_files(["LICENSE"])
cc_library(
name = "libprotobuf_mutator_internals",
srcs = [
"src/binary_format.cc",
"src/field_instance.h",
"src/libfuzzer/libfuzzer_macro.cc",
"src/libfuzzer/libfuzzer_mutator.cc",
"src/mutator.cc",
"src/text_format.cc",
"src/utf8_fix.cc",
"src/weighted_reservoir_sampler.h",
],
hdrs = [
"port/protobuf.h",
"src/binary_format.h",
"src/libfuzzer/libfuzzer_macro.h",
"src/libfuzzer/libfuzzer_mutator.h",
"src/mutator.h",
"src/random.h",
"src/text_format.h",
"src/utf8_fix.h",
],
includes = ["."],
deps = ["@com_google_protobuf//:protobuf"],
)
cc_library(
name = "libprotobuf_mutator",
hdrs = ["src/libfuzzer/libfuzzer_macro.h"],
includes = ["."],
visibility = ["//visibility:public"],
deps = [":libprotobuf_mutator_internals"],
)
+13
View File
@@ -0,0 +1,13 @@
"""Provides the repo macro to import google libprotobuf_mutator"""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports libprotobuf_mutator."""
tf_http_archive(
name = "com_google_libprotobuf_mutator",
sha256 = "792f250fb546bde8590e72d64311ea00a70c175fd77df6bb5e02328fa15fe28e",
strip_prefix = "libprotobuf-mutator-1.0",
build_file = "//third_party/libprotobuf_mutator:libprotobuf_mutator.BUILD",
urls = tf_mirror_urls("https://github.com/google/libprotobuf-mutator/archive/v1.0.tar.gz"),
)