skia2/fuzz/FuzzPath.cpp
Mike Klein a465e2e308 add SKPath::readFromMemory() fuzzer
just like the rrect one

Change-Id: I35efeefd7ce5088f7769e0583c8364ad0aaf6517
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309712
Commit-Queue: Mike Klein <mtklein@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Mike Klein <mtklein@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-08-12 17:40:16 +00:00

18 lines
414 B
C++

/*
* Copyright 2020 Google, LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// To use this fuzzer follow the libfuzzer directions in
// site/dev/testing/fuzz.md.
#include "include/core/SkPath.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t size) {
SkPath path;
(void)path.readFromMemory(buf, size);
return 0;
}