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 15cc_test { 16 name: "CVE-2017-0333", 17 defaults: ["cts_hostsidetests_securitybulletin_defaults"], 18 srcs: ["poc.c"], 19 cflags: [ 20 "-W", 21 "-g", 22 "-O2", 23 "-Wimplicit", 24 "-D_FORTIFY_SOURCE=2", 25 "-D__linux__", 26 "-Wdeclaration-after-statement", 27 "-Wformat=2", 28 "-Winit-self", 29 "-Wnested-externs", 30 "-Wpacked", 31 "-Wshadow", 32 "-Wswitch-enum", 33 "-Wundef", 34 "-Wwrite-strings", 35 "-Wno-format-nonliteral", 36 "-Wstrict-prototypes", 37 "-Wmissing-prototypes", 38 "-Wno-unused-parameter", 39 "-Wno-unused-variable", 40 "-Wno-macro-redefined", 41 "-fPIE", 42 ], 43 ldflags: [ 44 "-fPIE", 45 "-pie", 46 "-rdynamic", 47 ], 48} 49