From 26ee8a142e8ddeb649f530a589344fbddd8114ce Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Wed, 24 Nov 2021 16:51:40 +0000 Subject: [PATCH] dng_sdk: extend stage fuzzer (#6897) --- projects/dng_sdk/dng_stage_fuzzer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/dng_sdk/dng_stage_fuzzer.cpp b/projects/dng_sdk/dng_stage_fuzzer.cpp index 5543b0f3e..6667c49c0 100644 --- a/projects/dng_sdk/dng_stage_fuzzer.cpp +++ b/projects/dng_sdk/dng_stage_fuzzer.cpp @@ -95,6 +95,16 @@ void runFuzzerWithVariableHost(char *filename, uint32_t dng_version, negative->ReadTransparencyMask(host, stream, info); } + if (do_color_coding == 2) { + const char fingerprint_raw[32] = { 'a', 'a','a','a','a','a', + 'a','a','a','a','a','a','a','a','a','a','a','a','a', + 'a','a','a','a','a','a','a','a','a','a','a','a','a'}; + + dng_fingerprint fp; + fp.FromUtf8HexString(fingerprint_raw); + dng_camera_profile_id dcpi("random id", fp); + negative->ProfileByID(dcpi, true); + } negative->SynchronizeMetadata(); negative->SetFourColorBayer(); if (do_color_coding == 1) {