apdu_fuzzer.cc 507 B

12345678910111213141516
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/apdu/apdu_command.h"
  5. #include "components/apdu/apdu_response.h"
  6. namespace apdu {
  7. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  8. ApduCommand::CreateFromMessage(base::make_span(data, size));
  9. ApduResponse::CreateFromMessage(base::make_span(data, size));
  10. return 0;
  11. }
  12. } // namespace apdu