Index: contrib/libcxxrt/exception.cc =================================================================== --- contrib/libcxxrt/exception.cc +++ contrib/libcxxrt/exception.cc @@ -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);