chromium/third_party/blink/common/interest_group/ad_display_size_parser_fuzzer.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stddef.h>
#include <stdint.h>
#include <string>

#include "third_party/blink/public/common/interest_group/ad_display_size_utils.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  std::string s(reinterpret_cast<const char*>(data), size);
  blink::ParseAdSizeString(s);
  return 0;
}