/* Returns true if p was returned by the Msan allocator and
is not yet freed. */
- bool __msan_get_ownership(const void *p);
+ int __msan_get_ownership(const void *p);
/* Returns the number of bytes reserved for the pointer p.
Requires (get_ownership(p) == true) or (p == 0). */
#include <unistd.h>
extern "C" {
-bool __msan_get_ownership(const void *p);
+int __msan_get_ownership(const void *p);
void *global_ptr;
return size;
}
-bool __msan_get_ownership(const void *p) {
+int __msan_get_ownership(const void *p) {
return AllocationSize(p) != 0;
}
uptr __msan_get_estimated_allocated_size(uptr size);
SANITIZER_INTERFACE_ATTRIBUTE
-bool __msan_get_ownership(const void *p);
+int __msan_get_ownership(const void *p);
SANITIZER_INTERFACE_ATTRIBUTE
uptr __msan_get_allocated_size(const void *p);