[PATCH] [ASan] Make stack-buffer-overflow reports more robust

Kostya Serebryany kcc at google.com
Wed Oct 1 10:24:31 PDT 2014


Is this change testable?

================
Comment at: lib/asan/asan_report.cc:458
@@ -456,1 +457,3 @@
   // Report all objects in this frame.
+  const uptr kBufSize = 4095;
+  char buf[kBufSize];
----------------
Isn't this buffer too large? (we may get stack overflow while reporting)

http://reviews.llvm.org/D5554






More information about the llvm-commits mailing list