mirror of https://github.com/google/oss-fuzz.git
dng_sdk: extend stage fuzzer (#6897)
This commit is contained in:
parent
54d17f48e7
commit
26ee8a142e
|
@ -95,6 +95,16 @@ void runFuzzerWithVariableHost(char *filename, uint32_t dng_version,
|
||||||
negative->ReadTransparencyMask(host, stream, info);
|
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->SynchronizeMetadata();
|
||||||
negative->SetFourColorBayer();
|
negative->SetFourColorBayer();
|
||||||
if (do_color_coding == 1) {
|
if (do_color_coding == 1) {
|
||||||
|
|
Loading…
Reference in New Issue