Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(430)

Unified Diff: asan_interface.h

Issue 5543070: AddressSanitizer: return False for __asan_get_ownership(NULL) (Closed) Base URL: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/
Patch Set: Created 13 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: asan_interface.h
===================================================================
--- asan_interface.h (revision 148305)
+++ asan_interface.h (working copy)
@@ -107,11 +107,11 @@
// memory, returns the maximal possible allocation size, otherwise returns
// "size".
size_t __asan_get_estimated_allocated_size(size_t size);
- // Returns true if p is NULL or if p was returned by the ASan allocator and
+ // Returns true if p was returned by the ASan allocator and
// is not yet freed.
bool __asan_get_ownership(const void *p);
// Returns the number of bytes reserved for the pointer p.
- // Requires (get_ownership(p) == true).
+ // Requires (get_ownership(p) == true) or (p == NULL).
size_t __asan_get_allocated_size(const void *p);
// Number of bytes, allocated and not yet freed by the application.
size_t __asan_get_current_allocated_bytes();
« asan_allocator.cc ('K') | « asan_allocator.cc ('k') | tests/asan_interface_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b