We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ed145 commit d158236Copy full SHA for d158236
runtime/core/memory_allocator.h
@@ -84,7 +84,7 @@ class MemoryAllocator {
84
85
// If the end of this allocation exceeds the end of this allocator, print
86
// error messages and return nullptr
87
- if (end > end_) {
+ if (end > end_ || end < start) {
88
ET_LOG(
89
Error,
90
"Memory allocation failed: %zuB requested (adjusted for alignment), %zuB available",
0 commit comments