reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s // REQUIRES: !android #include <assert.h> #include <strings.h> int main(int argc, char *argv[]) { char buf[100]; // *& to suppress bzero-to-memset optimization. (*&bzero)(buf, sizeof(buf) + 1); // CHECK: AddressSanitizer: stack-buffer-overflow // CHECK-NEXT: WRITE of size 101 at return 0; } |