diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp index f2f483ac72..7852dd3546 100644 --- a/fuzz/fuzz.cpp +++ b/fuzz/fuzz.cpp @@ -440,9 +440,9 @@ static void fuzz_img(sk_sp bytes, uint8_t scale, uint8_t mode) { } static void fuzz_skp(sk_sp bytes) { - SkMemoryStream stream(bytes); + SkReadBuffer buf(bytes->data(), bytes->size()); SkDebugf("Decoding\n"); - sk_sp pic(SkPicture::MakeFromStream(&stream)); + sk_sp pic(SkPicture::MakeFromBuffer(buf)); if (!pic) { SkDebugf("[terminated] Couldn't decode as a picture.\n"); return;