FuzzGzipDecompression.cpp 334 B

1234567891011121314
  1. /*
  2. * Copyright (c) 2021, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibCompress/Gzip.h>
  7. #include <stdio.h>
  8. extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
  9. {
  10. auto result = Compress::GzipDecompressor::decompress_all(ReadonlyBytes { data, size });
  11. return 0;
  12. }