skia2/fuzz/FuzzRRect.cpp
Mike Klein ed93e5e810 add SkRRect::readFromMemory() fuzzer
Change-Id: I2102056847efe9e56ba6e8150e0d451bffc8f204
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309378
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-08-11 20:26:28 +00:00

18 lines
418 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/SkRRect.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t size) {
SkRRect rrect;
(void)rrect.readFromMemory(buf, size);
return 0;
}