[fuzzing] Fix skdescriptor deserialize compile

Change-Id: I03cf0b61099845ed1a931b30662830ffb883fa05
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/250177
Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Kevin Lubick 2019-10-23 07:53:29 -04:00
parent 184a300a24
commit a12f6cbff3

View File

@ -30,7 +30,7 @@ void FuzzSkDescriptorDeserialize(sk_sp<SkData> bytes) {
#if defined(IS_FUZZING_WITH_LIBFUZZER)
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
auto bytes = SkData::MakeWithoutCopy(data, size);
FuzzSkDescriptorDeserialize(&fuzz);
FuzzSkDescriptorDeserialize(bytes);
return 0;
}
#endif