svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: Thomas Sanchez <thomas.sanchz AT gmail.com>
- To: svadev AT cs.uiuc.edu
- Subject: [svadev] Using freed pointer
- Date: Thu, 18 Aug 2011 09:33:15 -0700
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
- List-id: <svadev.cs.uiuc.edu>
Hi,
I just read the mail on the clang mailing list talking about SAFE.
I'am pretty interested in this tool but the first test I did was not a
full success:
int main(int ac, char** av)
{
char* ptr = new char;
*ptr = 9;
delete ptr;
return *ptr;
}
$> ./bin/clang++ -g -fmemsafety test.cpp -Llib -lsc_dbg_rt
-lpoolalloc_bitmap -lstdc++
$> ./a.out
$> echo $?
9
Should'nt this code trigger some errors during the execution ?
I'm on Mac OS X 10.7.
Thank you !
--
Thomas Sanchez
- [svadev] Using freed pointer, Thomas Sanchez, 08/18/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/18/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/18/2011
- Re: [svadev] Using freed pointer, Thomas Sanchez, 08/18/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/19/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/19/2011
- Re: [svadev] Using freed pointer, Thomas Sanchez, 08/20/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/19/2011
- Re: [svadev] Using freed pointer, John Criswell, 08/19/2011
- Re: [svadev] Using freed pointer, Thomas Sanchez, 08/18/2011
Archive powered by MHonArc 2.6.16.