This is an archive of the discontinued LLVM Phabricator instance.

Add FreeBSD support to the address sanitizer's malloc_context_size.cc test case
ClosedPublic

Authored by kutuzov.viktor.84 on Jul 25 2014, 7:51 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kutuzov.viktor.84 retitled this revision from to Add FreeBSD support to the address sanitizer's malloc_context_size.cc test case.
kutuzov.viktor.84 updated this object.
kutuzov.viktor.84 edited the test plan for this revision. (Show Details)
kutuzov.viktor.84 added reviewers: kcc, samsonov.
kutuzov.viktor.84 added subscribers: Unknown Object (MLST), emaste.
kcc edited edge metadata.Jul 25 2014, 8:09 AM

can you merge FreeBSD case into the Linux case?
Just remove the '[]' in the end, then Linux and FreeBSD cases will be the same

Just remove the '[]' in the end, then Linux and FreeBSD cases will be the same

Perhaps operator new{{ ?}}[] ?

samsonov edited edge metadata.Jul 25 2014, 11:10 AM

I'd suggest to go further and merge all the CHECK-%os lines together. That is, use {{(operator new( )?[])|(wrap__ZdaPv)}}.
This test case is already buggy: FileCheck is invoked with --check-prefix=CHECK-%os, which means that lines

// CHECK-NOT: #1 0x{{.*}}
// CHECK: SUMMARY: AddressSanitizer: heap-use-after-free

are ignored.

kutuzov.viktor.84 edited edge metadata.

Updated as suggested.

samsonov accepted this revision.Aug 6 2014, 3:35 PM
samsonov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 6 2014, 3:35 PM
kutuzov.viktor.84 updated this revision to Diff 12268.

Closed by commit rL215081 (authored by vkutuzov).