+2018-12-27 Martin Liska <mliska@suse.cz>
+
+ PR sanitizer/86229
+ * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
+ pick rL350085.
+ * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
+
2018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
PR sanitizer/86090
Printf("%s", d.Warning());
Report("ERROR: AddressSanitizer: alloc-dealloc-mismatch (%s vs %s) on %p\n",
alloc_names[alloc_type], dealloc_names[dealloc_type],
- addr_description.addr);
+ addr_description.Address());
Printf("%s", d.EndWarning());
CHECK_GT(dealloc_stack->size, 0);
scariness.Print();
struct ErrorAllocTypeMismatch : ErrorBase {
// ErrorAllocTypeMismatch doesn't own the stack trace.
const BufferedStackTrace *dealloc_stack;
- HeapAddressDescription addr_description;
AllocType alloc_type, dealloc_type;
+ AddressDescription addr_description;
// VS2013 doesn't implement unrestricted unions, so we need a trivial default
// constructor
ErrorAllocTypeMismatch() = default;
: ErrorBase(tid),
dealloc_stack(stack),
alloc_type(alloc_type_),
- dealloc_type(dealloc_type_) {
- GetHeapAddressInformation(addr, 1, &addr_description);
+ dealloc_type(dealloc_type_),
+ addr_description(addr, 1, false) {
scariness.Clear();
scariness.Scare(10, "alloc-dealloc-mismatch");
};