summaryrefslogtreecommitdiff
path: root/chromium/components/apdu/apdu_fuzzer.cc
blob: 689ffb28e00e7fb29666e69a3ef752468699a91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/apdu/apdu_command.h"
#include "components/apdu/apdu_response.h"

namespace apdu {

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  ApduCommand::CreateFromMessage(base::make_span(data, size));
  ApduResponse::CreateFromMessage(base::make_span(data, size));
  return 0;
}

}  // namespace apdu