[astc-encoder] Initial integration (#4188)
* initial commit, build failing
* added fuzzer, build failing
* build working, deadly signal at runtime
* fuzzer working until input ~25
* getting global-buffer-overflow, most likely due to insufficient size of output buffer
* encode_ise_fuzzer build working
* added decode_ise_fuzzer, load_decompress_image_fuzzer (build failing for the latter)
* removed test_fuzzer, build working
* fixed formatting issues with clang-format
* combined astc_encode_ise fuzzer and astc_decode_ise_fuzzer, found correct output buffer size, added relevant comments to astc_load_decompress_image_fuzzer, fixed if statement style, made input size checks more accurate, and removed unused variable declaration in build script
* style fixes
* Fix ASTC build issues.
Fixes the ASTC encoder build under AFL by putting Clang arguments in the
correct (?) order.
* removed implementation-specific checks, limited encode/decode_ise inputs to 64 bytes
* Update ASTC build to work with the updated Makefile.
* Try fixing AFL, Honggfuzz builds
Co-authored-by: Michael Jezierny <mtjz@google.com>
Co-authored-by: Abhishek Arya <inferno@chromium.org>
2020-09-11 16:22:44 +00:00
|
|
|
# !/bin/bash -eu
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-09-28 21:37:30 +00:00
|
|
|
# build project and project-hosted fuzzers
|
|
|
|
$SRC/astc-encoder/Source/Fuzzers/build.sh
|