summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-19 09:11:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-19 09:11:21 +0000
commit28a24fdbbc2f44113995f5633362085591eb171f (patch)
tree95fd2339bfce326ce3d90731d5d6b8dec28a80e6 /clang/test/Misc
parentb0c23e81e7a24fa9737ae07c9136b917b4d69b18 (diff)
downloadbcm5719-llvm-28a24fdbbc2f44113995f5633362085591eb171f.tar.gz
bcm5719-llvm-28a24fdbbc2f44113995f5633362085591eb171f.zip
Workaround a bug exposed by the FileCheckify of message-length.c, the caret end
column computation isn't correct and could exceed the line length, which resulted in a buffer overflow later. - Chris, is there a better way for this code to compute the final column used by the caret? llvm-svn: 84475
Diffstat (limited to 'clang/test/Misc')
-rw-r--r--clang/test/Misc/message-length.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Misc/message-length.c b/clang/test/Misc/message-length.c
index 69a5c1c1913..9f4d66fe71c 100644
--- a/clang/test/Misc/message-length.c
+++ b/clang/test/Misc/message-length.c
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only -fmessage-length=72 %s 2>&1 | tee /tmp/out.txt | FileCheck -strict-whitespace %s &&
+// RUN: clang -fsyntax-only -fmessage-length=72 %s 2>&1 | FileCheck -strict-whitespace %s &&
// RUN: clang -fsyntax-only -fmessage-length=1 %s
// Hack so we can check things better, force the file name and line.
@@ -29,4 +29,4 @@ void a_very_long_line(int *ip, float *FloatPointer) {
// CHECK: FILE:23:78
-// CHECK: {{^ ...some long comment text and a brace, eh {} $}}
+// CHECK: {{^ ...// some long comment text and a brace, eh {} $}}
OpenPOWER on IntegriCloud