dng_sdk: extend stage fuzzer (#6897)

This commit is contained in:
DavidKorczynski 2021-11-24 16:51:40 +00:00 committed by GitHub
parent 54d17f48e7
commit 26ee8a142e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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) {