<div dir="ltr">Please also fix the leak(s) in this test: <div><a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/23751/steps/check-asan%20in%20gcc%20build/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/23751/steps/check-asan%20in%20gcc%20build/logs/stdio</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 2:33 PM, Filipe Cabecinhas via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: filcab<br>
Date: Fri Apr 29 16:33:12 2016<br>
New Revision: 268114<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=268114&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=268114&view=rev</a><br>
Log:<br>
Try to fix clang-cmake-aarch64-42vma by removing a memory leak (have a global var capture it).<br>
<br>
Modified:<br>
compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc<br>
<br>
Modified: compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc?rev=268114&r1=268113&r2=268114&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc?rev=268114&r1=268113&r2=268114&view=diff</a><br>
==============================================================================<br>
--- compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc (original)<br>
+++ compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc Fri Apr 29 16:33:12 2016<br>
@@ -8,11 +8,12 @@<br>
#include <assert.h><br>
#include <stdlib.h><br>
<br>
+char *p;<br>
int main(int argc, char **argv) {<br>
// ALL-ERRORS: ERROR: AddressSanitizer: invalid-pointer-pair<br>
// [[PTR1:0x[0-9a-f]+]] [[PTR2:0x[0-9a-f]+]]<br>
assert(argc >= 2);<br>
- char *p = (char *)malloc(42);<br>
+ p = (char *)malloc(42);<br>
char *q = (char *)malloc(42);<br>
switch (argv[1][0]) {<br>
case 'g':<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>