From 56438322bd3f5ba7e8554c5cffd4006a13f4b49a Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 15 Feb 2022 14:27:35 -0500 Subject: [PATCH] [fuzz] Fix unreachable code warning Change-Id: I18fb0be2ae900cd99c20aa65eea85fff1e367876 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/509399 Reviewed-by: Leon Scroggins --- src/codec/SkRawCodec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp index c1eb6ad2e2..c0893d5d84 100644 --- a/src/codec/SkRawCodec.cpp +++ b/src/codec/SkRawCodec.cpp @@ -440,12 +440,13 @@ public: // We just pretend all streams are invalid. Our AFL-fuzzer // should still exercise this code; it's more resistant to OOM. return nullptr; -#endif +#else if (!dngImage->initFromPiex() && !dngImage->readDng()) { return nullptr; } return dngImage.release(); +#endif } /*