From 526b5fc70300d00f74ec72e9ca96b32e9ec4f785 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Sun, 12 Apr 2020 17:40:27 +0600 Subject: [PATCH] - teporarily disable ProcessDentLump --- src_rebuild/GAME/C/DENTING.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src_rebuild/GAME/C/DENTING.C b/src_rebuild/GAME/C/DENTING.C index 71024196..ccc50141 100644 --- a/src_rebuild/GAME/C/DENTING.C +++ b/src_rebuild/GAME/C/DENTING.C @@ -707,6 +707,9 @@ unsigned char gHDCarDamageLevels[5][255]; // [D] void ProcessDentLump(char *lump_ptr, int lump_size) { + // [A] This function causes buffer overrun and corrupts HEAP + UNIMPLEMENTED(); + /* unsigned char uVar1; int *local_v1_316; int *piVar2; @@ -718,6 +721,8 @@ void ProcessDentLump(char *lump_ptr, int lump_size) int iVar8; int iVar9; + + iVar6 = 0; do { iVar3 = MissionHeader->residentModels[iVar6]; @@ -851,7 +856,7 @@ void ProcessDentLump(char *lump_ptr, int lump_size) *(unsigned char *)((int)piVar2 + 0xe) = uVar1; } iVar6 = iVar7; - } while (iVar7 < 5); + } while (iVar7 < 5);*/ }