Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4327,7 +4327,9 @@ void HeightMapRenderObjClass::renderExtraBlendTiles(void)
DynamicIBAccessClass::WriteLockClass lockib(&ib_access);
UnsignedShort *ib=lockib.Get_Index_Array();

if (!vb || !ib) return;
// Enhanced pointer validation: check for NULL and suspiciously low addresses that indicate
// invalid/corrupted pointers from failed buffer allocation or device in degraded state
if (!vb || !ib || (size_t)vb < 0x10000 || (size_t)ib < 0x10000) return;

const UnsignedByte* data = m_map->getDataPtr();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,9 @@ void HeightMapRenderObjClass::renderExtraBlendTiles(void)
DynamicIBAccessClass::WriteLockClass lockib(&ib_access);
UnsignedShort *ib=lockib.Get_Index_Array();

if (!vb || !ib) return;
// Enhanced pointer validation: check for NULL and suspiciously low addresses that indicate
// invalid/corrupted pointers from failed buffer allocation or device in degraded state
if (!vb || !ib || (size_t)vb < 0x10000 || (size_t)ib < 0x10000) return;

const UnsignedByte* data = m_map->getDataPtr();

Expand Down
Loading