[PATCH] D35806: [scudo] Fix QuarantineChunksUpToSize failing test on AArch64

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 09:58:59 PDT 2017


cryptoad created this revision.
Herald added subscribers: kristof.beyls, rengolin, aemerson.

Warm-up the other 2 sizes used by the tests, which should get rid of a failure
on AArch64.


https://reviews.llvm.org/D35806

Files:
  test/scudo/quarantine.cpp


Index: test/scudo/quarantine.cpp
===================================================================
--- test/scudo/quarantine.cpp
+++ test/scudo/quarantine.cpp
@@ -28,9 +28,15 @@
   p = malloc(size);
   assert(p);
   free(p);
+  p = malloc(size + 1);
+  assert(p);
+  free(p);
   assert(posix_memalign(&p, alignment, size) == 0);
   assert(p);
   free(p);
+  assert(posix_memalign(&p, alignment, size + 1) == 0);
+  assert(p);
+  free(p);
 
   if (!strcmp(argv[1], "zeroquarantine")) {
     // Verifies that a chunk is deallocated right away when the local and


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35806.107920.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170724/4c440e0b/attachment.bin>


More information about the llvm-commits mailing list