diff --git a/projects/astc-encoder/astc_encode_decode_ise_fuzzer.cc b/projects/astc-encoder/astc_encode_decode_ise_fuzzer.cc deleted file mode 100644 index 37deeb45a..000000000 --- a/projects/astc-encoder/astc_encode_decode_ise_fuzzer.cc +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2020 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "astcenc_internal.h" - -#include -#include - -static constexpr size_t kMaxOutBufSize = 64; - -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - - FuzzedDataProvider stream(data, size); - int quantization_level = stream.ConsumeIntegral(); - - // encode_ise and decode_ise will each write a max of 64 bytes to the buffer - std::vector buffer = stream.ConsumeBytes(kMaxOutBufSize); - uint8_t out[kMaxOutBufSize]; - - encode_ise(quantization_level, buffer.size(), buffer.data(), out, 0); - decode_ise(quantization_level, buffer.size(), buffer.data(), out, 0); - - return 0; -} diff --git a/projects/astc-encoder/build.sh b/projects/astc-encoder/build.sh index a38d60cdf..357812b46 100755 --- a/projects/astc-encoder/build.sh +++ b/projects/astc-encoder/build.sh @@ -27,7 +27,3 @@ for fuzzer in $SRC/*_fuzzer.cc; do -I. -std=c++14 $fuzzer $LIB_FUZZING_ENGINE $SRC/astc-encoder/Source/libastc.a \ -o $OUT/$(basename -s .cc $fuzzer) done - -# Temporarily disable one fuzz target as requested in -# https://github.com/google/oss-fuzz/issues/4481. -rm $OUT/astc_encode_decode_ise_fuzzer