1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License 14 15package { 16 default_team: "trendy_team_platform_security", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_test { 21 name: "CVE-2016-8479", 22 defaults: ["cts_hostsidetests_securitybulletin_defaults"], 23 srcs: ["poc.c"], 24 cflags: [ 25 "-W", 26 "-g", 27 "-O2", 28 "-Wimplicit", 29 "-D_FORTIFY_SOURCE=2", 30 "-D__linux__", 31 "-Wdeclaration-after-statement", 32 "-Wformat=2", 33 "-Winit-self", 34 "-Wnested-externs", 35 "-Wpacked", 36 "-Wshadow", 37 "-Wswitch-enum", 38 "-Wundef", 39 "-Wwrite-strings", 40 "-Wno-format-nonliteral", 41 "-Wstrict-prototypes", 42 "-Wmissing-prototypes", 43 "-Wno-unused-but-set-variable", 44 "-Wno-unused-parameter", 45 "-Wno-unused-variable", 46 "-Wno-macro-redefined", 47 "-fPIE", 48 ], 49 ldflags: [ 50 "-fPIE", 51 "-pie", 52 "-rdynamic", 53 ], 54} 55