summaryrefslogtreecommitdiffstats
path: root/Common/src
diff options
context:
space:
mode:
Diffstat (limited to 'Common/src')
-rw-r--r--Common/src/FixedBlockMemoryAllocator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Common/src/FixedBlockMemoryAllocator.cpp b/Common/src/FixedBlockMemoryAllocator.cpp
index eb8ca3d1..bf4c8290 100644
--- a/Common/src/FixedBlockMemoryAllocator.cpp
+++ b/Common/src/FixedBlockMemoryAllocator.cpp
@@ -76,6 +76,8 @@ void FixedBlockMemoryAllocator::CreateNewPage()
void* FixedBlockMemoryAllocator::Allocate(size_t Size, const Char* dbgDescription, const char* dbgFileName, const Int32 dbgLineNumber)
{
+ VERIFY_EXPR(Size > 0);
+
Size = AdjustBlockSize(Size);
VERIFY(m_BlockSize == Size, "Requested size (", Size, ") does not match the block size (", m_BlockSize, ")");