aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--projects/libpng-proto/png_fuzz_proto.proto1
-rw-r--r--projects/libpng-proto/png_proto_fuzzer_example.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/projects/libpng-proto/png_fuzz_proto.proto b/projects/libpng-proto/png_fuzz_proto.proto
index ca9a18e3..741b2b65 100644
--- a/projects/libpng-proto/png_fuzz_proto.proto
+++ b/projects/libpng-proto/png_fuzz_proto.proto
@@ -18,7 +18,6 @@ message IDAT {
}
message iCCP {
- required string name = 1;
required bytes data = 2;
}
diff --git a/projects/libpng-proto/png_proto_fuzzer_example.cc b/projects/libpng-proto/png_proto_fuzzer_example.cc
index e2957f7c..dc3d2be1 100644
--- a/projects/libpng-proto/png_proto_fuzzer_example.cc
+++ b/projects/libpng-proto/png_proto_fuzzer_example.cc
@@ -70,7 +70,7 @@ std::string ProtoToPng(const PngProto &png_proto) {
WriteChunk(all, "IDAT", chunk.idat().data(), true);
} else if (chunk.has_iccp()) {
std::stringstream iccp_str;
- iccp_str << chunk.iccp().name();
+ iccp_str << "xyz"; // don't fuzz iCCP name field.
WriteByte(iccp_str, 0);
WriteByte(iccp_str, 0);
auto compressed_data = Compress(chunk.iccp().data());