Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156567329
D3733.id8937.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
803 B
Referenced Files
None
Subscribers
None
D3733.id8937.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3733: libcxxrt: Correct off-by-one in free_exception of emergency buffer
Attached
Detach File
Event Timeline
Log In to Comment