Skip to content

Commit 2d4060b

Browse files
authored
Merge pull request #511 from Gavriliuk/R2_DELIA-49044
Add null-check in RealAllocate
2 parents b6f2c95 + e16da32 commit 2d4060b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/core/Frame.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ namespace Core {
8585
inline void RealAllocate(const uint32_t requiredSize, const TemplateIntToType<NONZEROSIZE>& /* For compile time diffrentiation */)
8686
{
8787
if (requiredSize > _bufferSize) {
88+
ASSERT(_data != nullptr);
8889

8990
_bufferSize = static_cast<uint16_t>(((requiredSize / (STARTSIZE ? STARTSIZE : 1)) + 1) * STARTSIZE);
9091

0 commit comments

Comments
 (0)