https://github.com/epiqc/ScaffCC
Raw File
Tip revision: 4d7bfa034cfaea4e8346396c6198cdd3e271d272 authored by Andrew Litteken on 23 April 2020, 16:55:47 UTC
Version 5 Upgrade! (#40)
Tip revision: 4d7bfa0
taint-dumps.c
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.security.taint\
// RUN:                    -analyzer-checker=debug.ExprInspection %s\
// RUN:                                          2>&1 | FileCheck %s

void clang_analyzer_printState();
int getchar();

// CHECK: Tainted symbols:
// CHECK-NEXT: conj_$2{{.*}} : 0
int test_taint_dumps() {
  int x = getchar();
  clang_analyzer_printState();
  return x;
}
back to top