Fix in BlockMetadata_Linear::CreateAllocationRequest for too large allocations
Ported from https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/pull/396
diff --git a/src/D3D12MemAlloc.cpp b/src/D3D12MemAlloc.cpp
index b4868f5..bc4af5c 100644
--- a/src/D3D12MemAlloc.cpp
+++ b/src/D3D12MemAlloc.cpp
@@ -4034,6 +4034,10 @@
D3D12MA_ASSERT(allocSize > 0 && "Cannot allocate empty block!");
D3D12MA_ASSERT(pAllocationRequest != NULL);
D3D12MA_HEAVY_ASSERT(Validate());
+
+ if(allocSize > GetSize())
+ return false;
+
pAllocationRequest->size = allocSize;
return upperAddress ?
CreateAllocationRequest_UpperAddress(