summaryrefslogtreecommitdiff
path: root/fuzzer/Android.bp
blob: 26e2fa609750ed1740ea6b2cb307c472a37ba1ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
//     DEPENDING ON IT IN YOUR PROJECT. ***
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_dng_sdk_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-MIT
    //   legacy_by_exception_only (by exception only)
    default_applicable_licenses: ["external_dng_sdk_license"],
}

cc_fuzz {
    name: "dng_parser_fuzzer",
    host_supported: true,
    srcs: [
        "dng_parser_fuzzer.cpp",
    ],
    cflags: [
        "-Wno-unused-parameter",
        "-fexceptions",
    ],
    static_libs: [
        "libdng_sdk",
        "libjpeg",
        "liblog",
        "libz",
    ],
    target: {
        darwin: {
            enabled: false,
        },
    },
    corpus: [
        "seeds/CVE_2020_9589/original.dng",
        "seeds/CVE_2020_9589/poc.dng",
    ],
}