Page MenuHomeFreeBSD

D3733.id8937.diff
No OneTemporary

D3733.id8937.diff

Index: contrib/libcxxrt/exception.cc
===================================================================
--- contrib/libcxxrt/exception.cc
+++ contrib/libcxxrt/exception.cc
@@ -516,7 +516,7 @@
break;
}
}
- assert(buffer > 0 &&
+ assert(buffer >= 0 &&
"Trying to free something that is not an emergency buffer!");
// emergency_malloc() is expected to return 0-initialized data. We don't
// zero the buffer when allocating it, because the static buffers will
@@ -556,7 +556,7 @@
{
// If this allocation is within the address range of the emergency buffer,
// don't call free() because it was not allocated with malloc()
- if ((e > emergency_buffer) &&
+ if ((e >= emergency_buffer) &&
(e < (emergency_buffer + sizeof(emergency_buffer))))
{
emergency_malloc_free(e);

File Metadata

Mime Type
text/plain
Expires
Fri, May 15, 5:42 PM (4 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33092558
Default Alt Text
D3733.id8937.diff (803 B)

Event Timeline